21 #define UDP_HEADER_SIZE_byte (8)
29 #define UDP_IP_PROTOCOL (0x11)
31 #ifndef _OPEN_NET_NO_FUNCTION_
46 OPEN_NET_GLOBAL
unsigned char *
UDP_Data(OPEN_NET_GLOBAL
unsigned char * aData)
63 return (*((OPEN_NET_GLOBAL
const unsigned short *)(aData + 2)));
78 return (*((OPEN_NET_GLOBAL
const unsigned short *)(aData + 0)));
81 #endif // ! _OPEN_NET_NO_FUNCTION_
#define UDP_HEADER_SIZE_byte
La taille de l'entête UDP.
Definition: UDP.h:21
unsigned short UDP_DestinationPort(OPEN_NET_GLOBAL const unsigned char *aData)
Cette fonction retourne le port de destination.
Definition: UDP.h:61
unsigned short UDP_SourcePort(OPEN_NET_GLOBAL const unsigned char *aData)
Cette fonction retourne le port de source.
Definition: UDP.h:76
OPEN_NET_GLOBAL unsigned char * UDP_Data(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne l'adresse de la charge utile.
Definition: UDP.h:46