Inheritance: IXmlable, ISerializable
Beispiel #1
0
 /// <summary>
 /// Writes the given AbstractMessage into the TCPConnection.
 /// </summary>
 /// <param name="msg"></param>
 public void Write(AbstractMessage msg)
 {
     String text = msg.ToXML();
     writer.WriteLine(text);
     writer.Flush();
 }
 /// <summary>
 /// Method that places a message in a buffer to be sent to the server.
 /// 
 /// This is a non-blocking call.
 /// </summary>
 /// <param name="msg"></param>
 public void Notify(AbstractMessage msg)
 {
     buffer.Put(msg);
 }