You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
879 B
38 lines
879 B
using System;
|
|
|
|
namespace Org.BouncyCastle.Tls
|
|
{
|
|
public sealed class DtlsRequest
|
|
{
|
|
private readonly long m_recordSeq;
|
|
private readonly byte[] m_message;
|
|
private readonly ClientHello m_clientHello;
|
|
|
|
internal DtlsRequest(long recordSeq, byte[] message, ClientHello clientHello)
|
|
{
|
|
this.m_recordSeq = recordSeq;
|
|
this.m_message = message;
|
|
this.m_clientHello = clientHello;
|
|
}
|
|
|
|
internal ClientHello ClientHello
|
|
{
|
|
get { return m_clientHello; }
|
|
}
|
|
|
|
internal byte[] Message
|
|
{
|
|
get { return m_message; }
|
|
}
|
|
|
|
internal int MessageSeq
|
|
{
|
|
get { return TlsUtilities.ReadUint16(m_message, 4); }
|
|
}
|
|
|
|
internal long RecordSeq
|
|
{
|
|
get { return m_recordSeq; }
|
|
}
|
|
}
|
|
}
|
|
|