summary refs log tree commit diff
path: root/crypto/src/tls/DtlsRequest.cs
blob: 126429e674681e8d017d10c061544a55d53a7c6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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; }
        }
    }
}