C# Class Ipv6Header, Hermod

Inheritance: AProtocolHeader
Afficher le fichier Open project: Vanaheimr/Hermod Class Usage Examples

Méthodes publiques

Свойство Type Description
Ipv6HeaderLength int

Méthodes publiques

Méthode 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 méthode

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
Résultat Ipv6Header,

GetProtocolPacketBytes() public méthode

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
Résultat byte[]

Ipv6Header() public méthode

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

Property Details

Ipv6HeaderLength public_oe static_oe property

public static int Ipv6HeaderLength
Résultat int