Inheritance: IXmlable, ISerializable
コード例 #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();
 }
コード例 #2
0
 /// <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);
 }