private void ReadMessageFromClient() { StreamString ss = new StreamString(this.server); string data = ss.ReadString(); // Raise message received event. if (!string.IsNullOrEmpty(data)) { this.RaiseMessageReceivedEvent(data); } }
public void SendMessage(string message) { StreamString ss = new StreamString(this.client); ss.WriteString(message); }