Watt-32 tcp/ip  2.2 dev-rel.10
Functions
swap.h File Reference

Go to the source code of this file.

Functions

__BEGIN_DECLS W32_FUNC
unsigned short W32_CALL 
ntohs (unsigned short)
 
W32_FUNC unsigned short W32_CALL htons (unsigned short)
 
W32_FUNC unsigned long W32_CALL ntohl (unsigned long)
 
W32_FUNC unsigned long W32_CALL htonl (unsigned long)
 
W32_FUNC unsigned long cdecl _w32_intel (unsigned long x)
 Convert 32-bit big-endian (network order) to intel (host order) format. More...
 
W32_FUNC unsigned short cdecl _w32_intel16 (unsigned short x)
 Convert 16-bit big-endian (network order) to intel (host order) format. More...
 
__inline__ unsigned long __ntohl (unsigned long x)
 
__inline__ unsigned short __ntohs (unsigned short x)
 
 __declspec (naked) inline unsigned long __fastcall __ntohl(unsigned long x)
 
W32_FUNC unsigned long cdecl intel (unsigned long x)
 
W32_FUNC unsigned short cdecl intel16 (unsigned short x)
 

Detailed Description

Swapping of short/long values.

Definition in file swap.h.

Function Documentation

W32_FUNC unsigned long cdecl _w32_intel ( unsigned long  val)

Convert 32-bit big-endian (network order) to intel (host order) format.

Or vice-versa. These are cdecl incase we patch them.

Definition at line 147 of file misc.c.

W32_FUNC unsigned short cdecl _w32_intel16 ( unsigned short  val)

Convert 16-bit big-endian (network order) to intel (host order) format.

Or vice-versa

Definition at line 159 of file misc.c.