示例#1
0
        public int Recv(SslAppData sad)
        {
            SslRecord sr = new SslRecord();
            int       n  = this.Recv(sr);

            sad.SetBytes(sr.GetBytes(), SslRecord.SSL_RECORD_HEADER_SIZE, n - SslRecord.SSL_RECORD_HEADER_SIZE);
            return(n);
        }
示例#2
0
 public void Send(SslRecord sr)
 {
     this.s.Send(sr.GetBytes());
 }