Пример #1
0
 public bool Init(string ip, int port)
 {
     _serverIP     = ip;
     _serverPort   = port;
     _socketClient = new SocketClient();
     _isConnected  = _socketClient.ConnectServer(_serverIP, _serverPort);
     return(_isConnected);
 }
Пример #2
0
 public bool Init()
 {
     _socketClient = new SocketClient();
     _isConnected  = _socketClient.ConnectServer(_serverIP, _serverPort);
     return(_isConnected);
 }