Ejemplo n.º 1
0
 /// <summary>
 /// Writes the layer to the buffer.
 /// This method ignores the payload length, and the previous and next layers.
 /// </summary>
 /// <param name="buffer">The buffer to write the layer to.</param>
 /// <param name="offset">The offset in the buffer to start writing the layer at.</param>
 protected override void Write(byte[] buffer, int offset)
 {
     IgmpDatagram.WriteVersion0Header(buffer, offset, MessageTypeValue, CodeValue, IdentifierValue, GroupAddressValue, AccessKeyValue);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes the layer to the buffer.
 /// This method ignores the payload length, and the previous and next layers.
 /// </summary>
 /// <param name="buffer">The buffer to write the layer to.</param>
 /// <param name="offset">The offset in the buffer to start writing the layer at.</param>
 protected sealed override void Write(byte[] buffer, int offset)
 {
     IgmpDatagram.WriteVersion1PlusSimpleHeader(buffer, offset,
                                                MessageTypeValue, MaxResponseTimeValue, GroupAddress);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Writes the layer to the buffer.
 /// This method ignores the payload length, and the previous and next layers.
 /// </summary>
 /// <param name="buffer">The buffer to write the layer to.</param>
 /// <param name="offset">The offset in the buffer to start writing the layer at.</param>
 protected override void Write(byte[] buffer, int offset)
 {
     IgmpDatagram.WriteQueryVersion3(buffer, offset,
                                     MaxResponseTime, GroupAddress, IsSuppressRouterSideProcessing, QueryRobustnessVariable,
                                     QueryInterval, SourceAddresses);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Writes the layer to the buffer.
 /// This method ignores the payload length, and the previous and next layers.
 /// </summary>
 /// <param name="buffer">The buffer to write the layer to.</param>
 /// <param name="offset">The offset in the buffer to start writing the layer at.</param>
 protected override void Write(byte[] buffer, int offset)
 {
     IgmpDatagram.WriteReportVersion3(buffer, offset, GroupRecords);
 }