Example #1
0
        public static UdpUser ConnectTo(string hostname, int port)
        {
            UdpUser connection = new UdpUser();

            connection.Client.AllowNatTraversal(true);
            connection.Client.Connect(hostname, port);
            return(connection);
        }
Example #2
0
 static public void ClientInit(Dictionary <int, MocrButton> listenButtons, Dictionary <int, MocrButton> talkButtons, UdpUser client)
 {
     lButtons  = listenButtons;
     tButtons  = talkButtons;
     UdpClient = client;
 }