Esempio n. 1
0
 public void Connect(string ip, int tpcPort, int udpReceivePort, int udpSendPort)
 {
     isConnected = true;
     tcp.Connect(ip, tpcPort);
     if (Constants.AllowUDP)
     {
         udpReceive.StartListening(udpReceivePort);
         udpSend.Connect(ip, udpSendPort);
     }
 }