Exemple #1
0
 private void GameServer_OnConnect(object sender, ClientEventArgs e)
 {
     SysCons.WriteLine("Client connected: {0}", e.Client.ToString());
     e.Client.User = new GameClient(e.Client);
     byte[] rawData = { 0x06, 0x00, 0x03, 0x00, 0x30, 0x2C, 0x67, 0x4C };
     if (e.Client.IsConnected) e.Client.Send(rawData);
 }
Exemple #2
0
 private void GameServer_OnDisconnect(object sender, ClientEventArgs e)
 {
     GameClient client = ((GameClient) e.Client.User);
     SysCons.WriteLine("Client disconnected: {0}", e.Client.ToString());
 }
Exemple #3
0
 private void GameServer_OnDataReceived(object sender, ClientEventArgs e, byte[] data)
 {
     PacketParser parser = new PacketParser();
     parser.CheckPacket(data, (GameClient)e.Client.User);
 }
Exemple #4
0
 private void AuthServ_OnDisconnect(object sender, ClientEventArgs e)
 {
     AuthClient client = ((AuthClient) e.Client.User);
     SysCons.WriteLine("Client disconnected: {0}", e.Client.ToString());
 }