public TcpClientInfo(string id, Socket clientSocket)
 {
     this.m_ClientSocket  = clientSocket;
     this.m_Buffer        = new byte[BufferSize];
     this.m_Id            = id;
     this.m_HeaderFactory = new TcpHeaderFactory();
 }
        public override void SendMessage(NetworkConnection connection, string message)
        {
            if (!m_ClientConnections.ContainsKey(connection.Id))
            {
                return;
            }

            TcpClientInfo clientInfo = m_ClientConnections[connection.Id];

            clientInfo.ClientSocket.Send(
                TcpHeaderFactory.ToPacket(
                    Encoding.UTF8.GetBytes(message)
                    ));
        }