WriteHandshakeMessage() protected method

protected WriteHandshakeMessage ( byte buf, int off, int len ) : void
buf byte
off int
len int
return void
Esempio n. 1
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                long num = this.Length - 4L;

                TlsUtilities.CheckUint24(num);
                this.Position = 1L;
                TlsUtilities.WriteUint24((int)num, this);
                protocol.WriteHandshakeMessage(this.GetBuffer(), 0, (int)this.Length);
                this.Close();
            }
Esempio n. 2
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                // Patch actual length back in
                long length = Length - 4;

                TlsUtilities.CheckUint24(length);
                this.Position = 1;
                TlsUtilities.WriteUint24((int)length, this);
                protocol.WriteHandshakeMessage(GetBuffer(), 0, (int)Length);
                this.Close();
            }
Esempio n. 3
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                long num = Length - 4;

                TlsUtilities.CheckUint24(num);
                Position = 1L;
                TlsUtilities.WriteUint24((int)num, this);
                byte[] buf = ToArray();
                protocol.WriteHandshakeMessage(buf, 0, (int)Length);
                Dispose();
            }
Esempio n. 4
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                long i = this.Length - 4L;

                TlsUtilities.CheckUint24(i);
                this.Position = 1L;
                TlsUtilities.WriteUint24((int)i, this);
                byte[] buf    = this.GetBuffer();
                int    length = (int)this.Length;

                protocol.WriteHandshakeMessage(buf, 0, length);
                Platform.Dispose(this);
            }
Esempio n. 5
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                long num = ((Stream)this).get_Length() - 4;

                TlsUtilities.CheckUint24(num);
                ((Stream)this).set_Position(1L);
                TlsUtilities.WriteUint24((int)num, (Stream)(object)this);
                byte[] buffer = ((MemoryStream)this).GetBuffer();
                int    len    = (int)((Stream)this).get_Length();

                protocol.WriteHandshakeMessage(buffer, 0, len);
                Platform.Dispose((Stream)(object)this);
            }
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                // Patch actual length back in
                long length = Length - 4;
                TlsUtilities.CheckUint24(length);
                this.Position = 1;
                TlsUtilities.WriteUint24((int)length, this);

                byte[] buffer = ToArray();
                protocol.WriteHandshakeMessage(buffer /*GetBuffer()*/, 0, (int)Length);

                this.Dispose();
            }
Esempio n. 7
0
            internal void WriteToRecordStream(TlsProtocol protocol)
            {
                // Patch actual length back in
                long length = Length - 4;
                TlsUtilities.CheckUint24(length);
                this.Position = 1;
                TlsUtilities.WriteUint24((int)length, this);

#if PORTABLE
                byte[] buf = ToArray();
                int bufLen = buf.Length;
#else
                byte[] buf = GetBuffer();
                int bufLen = (int)Length;
#endif

                protocol.WriteHandshakeMessage(buf, 0, bufLen);
                Platform.Dispose(this);
            }