public void Send <T>(ushort cmd1, ushort cmd2, T message) { byte[] data = NetworkSerializer.PackTCPMessage(cmd1, cmd2, message); messages.Enqueue(data); }
public void Send <T>(Socket client, ushort cmd1, ushort cmd2, T message) { byte[] data = NetworkSerializer.PackTCPMessage(cmd1, cmd2, message); messages.Enqueue(new Message(client, data)); }