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