Difference between revisions of "Unit UDP"
From Ultibo.org
Line 6: | Line 6: | ||
'''Ultibo UDP (User Datagram Protocol) unit''' | '''Ultibo UDP (User Datagram Protocol) unit''' | ||
− | |||
− | |||
=== Constants === | === Constants === |
Latest revision as of 05:33, 31 August 2021
Return to Unit Reference
Contents
[hide]Description
Ultibo UDP (User Datagram Protocol) unit
Constants
[Expand]
UDP specific constants
UDP_*
[Expand]
UDP socket option
[Expand]
UDP port
UDP_PORT_*
Type definitions
UDP header
UDP datagram
Class definitions
UDP specific classes
TUDPProtocolTransport = class(TProtocolTransport)
|
TUDPProtocol = class(TNetworkProtocol)
|
TUDPSocket = class(TProtocolSocket)
|
TUDPState = class(TProtocolState)
|
TUDPBuffer = class(TSocketBuffer)
|
TUDPOptions = class(TProtocolOptions)
|
Public variables
None defined
Function declarations
Initialization functions
UDP functions
[Expand]
function CheckUDP(AFamily:Word; ABuffer:Pointer):Boolean;
Description: Verify that the packet is a valid UDP packet
[Expand]
function GetUDPHeaderOffset(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
[Expand]
function GetUDPHeaderLength(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
[Expand]
function GetUDPDataOffset(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
[Expand]
function GetUDPDataLength(AFamily:Word; ABuffer:Pointer):Word;
Description: To be documented
[Expand]
function ChecksumUDPRecv(AFamily:Word; APseudo:PIPPseudo; ABuffer:Pointer; AOffset,ALength:Word):Word;
Description: Validate the Checksum of UDP Pseudo, Header and Data on Receive
[Expand]
function ChecksumUDPSend(AFamily:Word; APseudo:PIPPseudo; AHeader:PUDPHeader; AData:Pointer; ALength:Word):Word;
Description: Checksum the UDP Pseudo, Header and Data on Send
Return to Unit Reference