C# 클래스 NetworkPackets.UdpPacket

Provides an encapsulation for Udp Packets and can create new Udp Packets.
The contents of a Udp Packet: Field Position Source Port2 bytes Destination Port2 bytes Length2 bytes - includes udp header and data Checksum2 bytes- disabled = 00 00 00 00 DataThe rest
상속: NetworkPacket
파일 보기 프로젝트 열기: pstjuste/brunet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DestinationPort int
SourcePort int

공개 메소드들

메소드 설명
UdpPacket ( MemBlock packet ) : Brunet

Takes in a MemBlock and parses it as a Udp Packet.

UdpPacket ( int SourcePort, int DestinationPort, ICopyable Payload ) : Brunet

Creates a Udp Packet given the source port, destination port and the payload.

메소드 상세

UdpPacket() 공개 메소드

Takes in a MemBlock and parses it as a Udp Packet.
public UdpPacket ( MemBlock packet ) : Brunet
packet MemBlock The MemBlock containing the Udp Packet
리턴 Brunet

UdpPacket() 공개 메소드

Creates a Udp Packet given the source port, destination port and the payload.
public UdpPacket ( int SourcePort, int DestinationPort, ICopyable Payload ) : Brunet
SourcePort int The packets originating port
DestinationPort int The packets destination port
Payload ICopyable The data for the packet.
리턴 Brunet

프로퍼티 상세

DestinationPort 공개적으로 프로퍼티

The packets destination port
public int DestinationPort
리턴 int

SourcePort 공개적으로 프로퍼티

The packets originating port
public int SourcePort
리턴 int