public void SendData(string jsonData, byte playerID) { //length UInt16 //senderID byte //command byte //jsonData 2 + jsonData length UInt16 length = (UInt16)(1 + 1 + 2 + jsonData.Length); _outBuffer.Reset(); _outBuffer.Push(length); _outBuffer.Push(playerID); _outBuffer.Push(FrameSyncConstant.DEBUG_SERVER_PLAYER_FRAME); _outBuffer.PushUTF8LongString(jsonData); _tcpConnection.Send(_outBuffer); }