public void SendMessageTCP(SocketMessageCMD rCMD, NetBuffer rBuffer) { NetBuffer buf = new NetBuffer(); buf.WriteShort((UInt16)rCMD); buf.WriteBytes(rBuffer.ToBytes()); SocketClient.SendMessageTCP(buf); }