private void WriteHandshakeFragment(Message message, int fragment_offset, int fragment_length) { RecordLayerBuffer recordLayerBuffer = new RecordLayerBuffer(12 + fragment_length); TlsUtilities.WriteUint8(message.Type, recordLayerBuffer); TlsUtilities.WriteUint24(message.Body.Length, recordLayerBuffer); TlsUtilities.WriteUint16(message.Seq, recordLayerBuffer); TlsUtilities.WriteUint24(fragment_offset, recordLayerBuffer); TlsUtilities.WriteUint24(fragment_length, recordLayerBuffer); recordLayerBuffer.Write(message.Body, fragment_offset, fragment_length); recordLayerBuffer.SendToRecordLayer(mRecordLayer); }
private void WriteHandshakeFragment(Message message, int fragment_offset, int fragment_length) { RecordLayerBuffer fragment = new RecordLayerBuffer(MessageHeaderLength + fragment_length); TlsUtilities.WriteUint8(message.Type, fragment); TlsUtilities.WriteUint24(message.Body.Length, fragment); TlsUtilities.WriteUint16(message.Seq, fragment); TlsUtilities.WriteUint24(fragment_offset, fragment); TlsUtilities.WriteUint24(fragment_length, fragment); fragment.Write(message.Body, fragment_offset, fragment_length); fragment.SendToRecordLayer(mRecordLayer); }
private void WriteHandshakeFragment(Message message, int fragment_offset, int fragment_length) { RecordLayerBuffer fragment = new RecordLayerBuffer(12 + fragment_length); TlsUtilities.WriteUint8(message.Type, fragment); TlsUtilities.WriteUint24(message.Body.Length, fragment); TlsUtilities.WriteUint16(message.Seq, fragment); TlsUtilities.WriteUint24(fragment_offset, fragment); TlsUtilities.WriteUint24(fragment_length, fragment); fragment.Write(message.Body, fragment_offset, fragment_length); fragment.SendToRecordLayer(mRecordLayer); }