예제 #1
0
        private void ReadMessageFromClient()
        {
            StreamString ss   = new StreamString(this.server);
            string       data = ss.ReadString();

            // Raise message received event.
            if (!string.IsNullOrEmpty(data))
            {
                this.RaiseMessageReceivedEvent(data);
            }
        }
예제 #2
0
        public void SendMessage(string message)
        {
            StreamString ss = new StreamString(this.client);

            ss.WriteString(message);
        }