C# Class IPv4Header_old, Hermod

This is the IPv4 protocol header.
Inheritance: AProtocolHeader
Show file Open project: Vanaheimr/Hermod Class Usage Examples

Public Properties

Property Type Description
Ipv4HeaderLength int

Public Methods

Method 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 method

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
return IPv4Header_old,

GetProtocolPacketBytes() public method

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
return byte[]

IPv4Header_old() public method

Simple constructor that initializes the members to zero.
public IPv4Header_old ( ) : System
return System

Property Details

Ipv4HeaderLength public static property

public static int Ipv4HeaderLength
return int