public void SendData(Socket clientSocket, MessageObject message) { sendThread = new Thread(() => { byte[] dataToSend = message.BinarySerialize(); clientSocket.Send(dataToSend); }); sendThread.Start(); }
public void SendData(MessageObject message) { clientSocket.Send(message.BinarySerialize()); }