Example #1
0
 /// <summary>
 /// This constructor is for the ABORT chunk type which is identical to the
 /// ERROR chunk except for the optional verification tag bit.
 /// </summary>
 /// <param name="chunkType">The chunk type, typically ABORT.</param>
 /// <param name="verificationTagBit"></param>
 protected SctpErrorChunk(SctpChunkType chunkType, bool verificationTagBit)
     : base(chunkType)
 {
     if (verificationTagBit)
     {
         ChunkFlags = ABORT_CHUNK_TBIT_FLAG;
     }
 }
Example #2
0
 /// <summary>
 /// Initialises the chunk as either INIT or INIT ACK.
 /// </summary>
 /// <param name="initChunkType">Either INIT or INIT ACK.</param>
 public SctpInitChunk(SctpChunkType initChunkType,
                      uint initiateTag,
                      uint initialTSN,
                      uint arwnd,
                      ushort numberOutboundStreams,
                      ushort numberInboundStreams) : base(initChunkType)
 {
     InitiateTag           = initiateTag;
     NumberOutboundStreams = numberOutboundStreams;
     NumberInboundStreams  = numberInboundStreams;
     InitialTSN            = initialTSN;
     ARwnd = arwnd;
 }
Example #3
0
 public SctpChunk(SctpChunkType chunkType, byte chunkFlags = 0x00)
 {
     ChunkType  = (byte)chunkType;
     ChunkFlags = chunkFlags;
 }