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); }
public void Send(SslRecord sr) { this.s.Send(sr.GetBytes()); }