Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

network.h File Reference

Header for the network driver. More...

Go to the source code of this file.

Defines

#define ntohs(n)   ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) )
 Network to host conversion for a word.

#define htons(n)   ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) )
 Host to network conversion for a word.

#define ntohl(n)
 Network to host conversion for a double word.

#define htonl(n)
 Host to network conversion for a double word.


Detailed Description

Header for the network driver.

Author:
Andrea Righi <drizzt@inwind.it>
Date:
Last update: 2003-11-09
Note:
Copyright (©) 2003 Andrea Righi

Definition in file network.h.


Define Documentation

#define htonl  
 

Value:

( (((n) & 0xFF000000) >> 24) | (((n) & 0x00FF0000) >> 8) \
                | (((n) & 0x0000FF00) << 8) | (((n) & 0x000000FF) << 24) )
Host to network conversion for a double word.

Definition at line 20 of file network.h.

#define htons      ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) )
 

Host to network conversion for a word.

Definition at line 15 of file network.h.

#define ntohl  
 

Value:

( (((n) & 0xFF000000) >> 24) | (((n) & 0x00FF0000) >> 8) \
                | (((n) & 0x0000FF00) << 8) | (((n) & 0x000000FF) << 24) )
Network to host conversion for a double word.

Definition at line 17 of file network.h.

#define ntohs      ( (((n) & 0xFF00) >> 8) | (((n) & 0x00FF) << 8) )
 

Network to host conversion for a word.

Definition at line 13 of file network.h.


Generated on Fri Feb 20 15:32:19 2004 for Minirighi by doxygen1.2.18