21 #define TCP_HEADER_SIZE_byte (20)
29 #define TCP_IP_PROTOCOL (0x06)
31 #ifndef _OPEN_NET_NO_FUNCTION_
46 OPEN_NET_GLOBAL
unsigned char *
TCP_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_
unsigned short TCP_DestinationPort(OPEN_NET_GLOBAL const unsigned char *aData)
Cette fonction retourne le port de destination.
Definition: TCP.h:61
unsigned short TCP_SourcePort(OPEN_NET_GLOBAL const unsigned char *aData)
Cette fonction retourne le port de source.
Definition: TCP.h:76
#define TCP_HEADER_SIZE_byte
La taille de l'entête TCP.
Definition: TCP.h:21
OPEN_NET_GLOBAL unsigned char * TCP_Data(OPEN_NET_GLOBAL unsigned char *aData)
Cette fonction retourne l'adresse de la charge utile.
Definition: TCP.h:46