public static IHandshakeData FromBytes(HandshakeDataType type, byte[] buffer) { IHandshakeData hData = (IHandshakeData)Activator.CreateInstance(GetObjectType(type), buffer); return(hData); }
public HandshakeProtocolMessage(HandshakeDataType type, byte[] buffer) { hData = HandshakeMessageFactory.FromBytes(type, buffer); }
public void ProcessHandshakeMessage(IHandshakeData hData) { hData.Process(this); }
/* constructor */ public HandshakeProtocolMessage(IHandshakeData data) { this.hData = data; }