C# Класс IPv4Header_old, Hermod

This is the IPv4 protocol header.
Наследование: AProtocolHeader
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Ipv4HeaderLength int

Открытые методы

Метод Описание
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.

Описание методов

Create() публичный статический Метод

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
Результат IPv4Header_old,

GetProtocolPacketBytes() публичный Метод

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
Результат byte[]

IPv4Header_old() публичный Метод

Simple constructor that initializes the members to zero.
public IPv4Header_old ( ) : System
Результат System

Описание свойств

Ipv4HeaderLength публичное статическое свойство

public static int Ipv4HeaderLength
Результат int