Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 static public void ClientInit(Dictionary <int, MocrButton> listenButtons, Dictionary <int, MocrButton> talkButtons, UdpUser client)
 {
     lButtons  = listenButtons;
     tButtons  = talkButtons;
     UdpClient = client;
 }