예제 #1
0
 public void Send(ushort cmd1, ushort cmd2, byte[] data)
 {
     byte[] packData = NetworkSerializer.PackSimpleTCPMessage(cmd1, cmd2, data);
     messages.Enqueue(packData);
 }
예제 #2
0
 public void Send(Socket client, ushort cmd1, ushort cmd2, byte[] data)
 {
     byte[] packData = NetworkSerializer.PackSimpleTCPMessage(cmd1, cmd2, data);
     messages.Enqueue(new Message(client, packData));
 }