C# 클래스 IcmpHeader, Hermod

상속: AProtocolHeader
파일 보기 프로젝트 열기: Vanaheimr/Hermod 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
EchoReplyCode byte
EchoReplyType byte
EchoRequestCode byte
EchoRequestType byte
IcmpHeaderLength int

공개 메소드들

메소드 설명
Create ( byte icmpPacket, int &bytesCopied ) : IcmpHeader,

This routine creates an instance of the IcmpHeader 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 builds the ICMP packet suitable for sending on a raw socket. It builds the ICMP packet and payload into a byte array and computes the checksum.

IcmpHeader ( ) : System

Default constructor for ICMP packet

메소드 상세

Create() 공개 정적인 메소드

This routine creates an instance of the IcmpHeader 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 icmpPacket, int &bytesCopied ) : IcmpHeader,
icmpPacket byte Byte array containing the binary ICMP header
bytesCopied int Number of bytes used in header
리턴 IcmpHeader,

GetProtocolPacketBytes() 공개 메소드

This routine builds the ICMP packet suitable for sending on a raw socket. It builds the ICMP packet and payload into a byte array and computes the checksum.
public GetProtocolPacketBytes ( byte payLoad ) : byte[]
payLoad byte Data payload of the ICMP packet
리턴 byte[]

IcmpHeader() 공개 메소드

Default constructor for ICMP packet
public IcmpHeader ( ) : System
리턴 System

프로퍼티 상세

EchoReplyCode 공개적으로 정적으로 프로퍼티

public static byte EchoReplyCode
리턴 byte

EchoReplyType 공개적으로 정적으로 프로퍼티

public static byte EchoReplyType
리턴 byte

EchoRequestCode 공개적으로 정적으로 프로퍼티

public static byte EchoRequestCode
리턴 byte

EchoRequestType 공개적으로 정적으로 프로퍼티

public static byte EchoRequestType
리턴 byte

IcmpHeaderLength 공개적으로 정적으로 프로퍼티

public static int IcmpHeaderLength
리턴 int