コード例 #1
0
        public static IHandshakeData FromBytes(HandshakeDataType type, byte[] buffer)
        {
            IHandshakeData hData = (IHandshakeData)Activator.CreateInstance(GetObjectType(type), buffer);

            return(hData);
        }
コード例 #2
0
 public HandshakeProtocolMessage(HandshakeDataType type, byte[] buffer)
 {
     hData = HandshakeMessageFactory.FromBytes(type, buffer);
 }
コード例 #3
0
 public void ProcessHandshakeMessage(IHandshakeData hData)
 {
     hData.Process(this);
 }
コード例 #4
0
 /* constructor */
 public HandshakeProtocolMessage(IHandshakeData data)
 {
     this.hData = data;
 }