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