DecodePdu() public abstract method

Return an IAkkaPdu instance that represents a PDU contained in the raw ByteString.
public abstract DecodePdu ( ByteString raw ) : IAkkaPdu
raw ByteString Encoded raw byte representation of an Akka PDU
return IAkkaPdu
Beispiel #1
0
 private IAkkaPdu DecodePdu(ByteString pdu)
 {
     try
     {
         return(_codec.DecodePdu(pdu));
     }
     catch (Exception ex)
     {
         throw new AkkaProtocolException(
                   string.Format("Error while decoding incoming Akka PDU of length {0}", pdu.Length), ex);
     }
 }