示例#1
0
 /// <summary>
 /// Reads a network message from the wire, blocking until the message is fully received.
 /// </summary>
 /// <returns>An instance of a Message subclass</returns>
 /// <exception cref="ProtocolException">If the message is badly formatted, failed checksum or there was a TCP failure.</exception>
 /// <exception cref="IOException"/>
 public virtual Message ReadMessage()
 {
     return(serializer.Deserialize(_in));
 }