C# Class IgmpHeader, Hermod

Inheritance: AProtocolHeader
Exibir arquivo Open project: Vanaheimr/Hermod Class Usage Examples

Public Properties

Property Type Description
AllSystemsAddress System.IPv4Address
IgmpHeaderLength int
IgmpLeaveGroup byte
IgmpMembershipQuery byte
IgmpMembershipReport byte
IgmpMembershipReportV2 byte

Public Methods

Method Description
Create ( byte igmpPacket, int &bytesCopied ) : IgmpHeader,

This routine creates an instance of the IgmpHeader class from a byte array that is a received IGMP packet. This is useful when a packet is received from the network and the header object needs to be constructed from those values.

GetProtocolPacketBytes ( byte payLoad ) : byte[]

This routine creates the byte array representation of the IGMP packet as it would look on the wire.

IgmpHeader ( ) : System

Simple constructor for the IGMP header that initializes the member fields.

Method Details

Create() public static method

This routine creates an instance of the IgmpHeader class from a byte array that is a received IGMP packet. This is useful when a packet is received from the network and the header object needs to be constructed from those values.
public static Create ( byte igmpPacket, int &bytesCopied ) : IgmpHeader,
igmpPacket byte Byte array containing the binary IGMP header
bytesCopied int Number of bytes used in header
return IgmpHeader,

GetProtocolPacketBytes() public method

This routine creates the byte array representation of the IGMP packet as it would look on the wire.
public GetProtocolPacketBytes ( byte payLoad ) : byte[]
payLoad byte Payload to copy after the IGMP header
return byte[]

IgmpHeader() public method

Simple constructor for the IGMP header that initializes the member fields.
public IgmpHeader ( ) : System
return System

Property Details

AllSystemsAddress public_oe static_oe property

public static IPv4Address,System AllSystemsAddress
return System.IPv4Address

IgmpHeaderLength public_oe static_oe property

public static int IgmpHeaderLength
return int

IgmpLeaveGroup public_oe static_oe property

public static byte IgmpLeaveGroup
return byte

IgmpMembershipQuery public_oe static_oe property

public static byte IgmpMembershipQuery
return byte

IgmpMembershipReport public_oe static_oe property

public static byte IgmpMembershipReport
return byte

IgmpMembershipReportV2 public_oe static_oe property

public static byte IgmpMembershipReportV2
return byte