C# Class Ipv6Header, Hermod

Inheritance: AProtocolHeader
Show file Open project: Vanaheimr/Hermod Class Usage Examples

Public Properties

Property Type Description
Ipv6HeaderLength int

Public Methods

Method Description
Create ( byte ipv6Packet, int &bytesCopied ) : Ipv6Header,

This routine creates an instance of the Ipv6Header 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[]

Packages up the IPv6 header and the given payload into a byte array suitable for sending on a socket.

Ipv6Header ( ) : System

Simple constructor for the IPv6 header that initializes the fields to zero.

Method Details

Create() public static method

This routine creates an instance of the Ipv6Header 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 ipv6Packet, int &bytesCopied ) : Ipv6Header,
ipv6Packet byte Byte array containing the binary IPv6 header
bytesCopied int Number of bytes used in header
return Ipv6Header,

GetProtocolPacketBytes() public method

Packages up the IPv6 header and the given payload into a byte array suitable for sending on a socket.
public GetProtocolPacketBytes ( byte payLoad ) : byte[]
payLoad byte Data encapsulated by the IPv6 header
return byte[]

Ipv6Header() public method

Simple constructor for the IPv6 header that initializes the fields to zero.
public Ipv6Header ( ) : System
return System

Property Details

Ipv6HeaderLength public static property

public static int Ipv6HeaderLength
return int