Пример #1
0
 public void Connect(IPAddress address, int port)
 {
     lock (_syncObject)
     {
         _socket.Connect(address, port);
     }
 }
Пример #2
0
 public void Connect(IPAddress address, int port)
 {
     _socket.Connect(address, port);
     _ioThread.Start();
 }