示例#1
0
        public byte[] EncodeHandshakeRecord(HandshakeType handshakeType)
        {
            HandshakeMessage msg = this.GetMessage(handshakeType);

            msg.Process();

            var bytes = this.EncodeRecord(msg.ContentType, msg.EncodeMessage());

            msg.Update();

            msg.Reset();

            return(bytes);
        }