C# Class IPv4Header_old, Hermod

This is the IPv4 protocol header.
Inheritance: AProtocolHeader
Afficher le fichier Open project: Vanaheimr/Hermod Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
Create ( byte ipv4Packet, int &bytesCopied ) : IPv4Header_old,

This routine creates an instance of the Ipv4Header 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 takes the properties of the IPv4 header and marhalls them into a byte array representing the IPv4 header that is to be sent on the wire.

IPv4Header_old ( ) : System

Simple constructor that initializes the members to zero.

Method Details

Create() public static méthode

This routine creates an instance of the Ipv4Header 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 ipv4Packet, int &bytesCopied ) : IPv4Header_old,
ipv4Packet byte Byte array containing the binary IPv4 header
bytesCopied int Number of bytes used in header
Résultat IPv4Header_old,

GetProtocolPacketBytes() public méthode

This routine takes the properties of the IPv4 header and marhalls them into a byte array representing the IPv4 header that is to be sent on the wire.
public GetProtocolPacketBytes ( byte payLoad ) : byte[]
payLoad byte The encapsulated headers and data
Résultat byte[]

IPv4Header_old() public méthode

Simple constructor that initializes the members to zero.
public IPv4Header_old ( ) : System
Résultat System

Property Details

Ipv4HeaderLength public_oe static_oe property

public static int Ipv4HeaderLength
Résultat int