OpenNet
Macros | Functions
UDP.h File Reference

Go to the source code of this file.

Macros

#define UDP_HEADER_SIZE_byte   (8)
 The UDP header size.
 
#define UDP_IP_PROTOCOL   (0x11)
 The IP protocol of UDP packets.
 

Functions

OPEN_NET_GLOBAL unsigned char * UDP_Data (OPEN_NET_GLOBAL unsigned char *aData)
 This function returns a pointer to the payload. More...
 
unsigned short UDP_DestinationPort (OPEN_NET_GLOBAL const unsigned char *aData)
 This function returns the destination port. More...
 
unsigned short UDP_SourcePort (OPEN_NET_GLOBAL const unsigned char *aData)
 This function returns the source port. More...
 

Detailed Description

Author
KMS - Martin Dubois, ing.

Function Documentation

OPEN_NET_GLOBAL unsigned char* UDP_Data ( OPEN_NET_GLOBAL unsigned char *  aData)

This function returns a pointer to the payload.

Parameters
aDataA pointer to the UDP header
Returns
This function returns a pointer to the payload.
unsigned short UDP_DestinationPort ( OPEN_NET_GLOBAL const unsigned char *  aData)

This function returns the destination port.

Parameters
aDataA pointer to the UDP header
Returns
This function returns the destination port.
unsigned short UDP_SourcePort ( OPEN_NET_GLOBAL const unsigned char *  aData)

This function returns the source port.

Parameters
aDataA pointer to the UDP header
Returns
This function returns the source port.