Exemplo n.º 1
0
 private void ConnectAndAssign(string ip, int port)
 {
     Connect(ip, port);
     Log.WriteLine(LogLevel.Info, "Connected to server @ {0}:{1}", ip, port);
     this.client.OnPacket     += new EventHandler <InterPacketReceivedEventArgs>(ClientOnPacket);
     this.client.OnDisconnect += new EventHandler <SessionCloseEventArgs>(ClientOnDisconnect);
     this.client.SendInterPass(Settings.Instance.InterPassword);
     InterHandler.TryAssiging(this);
 }
Exemplo n.º 2
0
 private void ConnectAndAssign(string ip, int port)
 {
     Connect(ip, port);
     Log.WriteLine(LogLevel.Info, "Connected to server @ {0}:{1}", ip, port);
     client.OnPacket     += ClientOnPacket;
     client.OnDisconnect += ClientOnDisconnect;
     client.SendInterPass(Settings.Instance.InterPassword);
     InterHandler.TryAssiging(this);
 }