ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
|  Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ns-2/emulate/inet.h File Reference

#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "config.h"

Defines

#define NTOHL(d)   ((d) = ntohl((d)))
#define NTOHS(d)   ((d) = ntohs((d)))
#define HTONL(d)   ((d) = htonl((d)))
#define HTONS(d)   ((d) = htons((d)))
#define INADDR_LOOPBACK   (u_int32_t)0x7F000001

Typedefs

typedef int socklen_t

Functions

char * LookupHostName (u_int32_t addr)
char * InetNtoa (u_int32_t addr)
u_int32_t LookupLocalAddr (void)
u_int32_t LookupHostAddr (const char *host)
const char * intoa (u_int32_t addr)
u_short in_cksum (u_short *, int)

Define Documentation

#define HTONL (  d    )     ((d) = htonl((d)))
 

#define HTONS (  d    )     ((d) = htons((d)))
 

#define INADDR_LOOPBACK   (u_int32_t)0x7F000001
 

#define NTOHL (  d    )     ((d) = ntohl((d)))
 

#define NTOHS (  d    )     ((d) = ntohs((d)))
 


Typedef Documentation

typedef int socklen_t
 


Function Documentation

u_short in_cksum (  u_short *   ,
int   
) 
 

char* InetNtoa (  u_int32_t    addr ) 
 

const char* intoa (  u_int32_t    addr ) 
 

u_int32_t LookupHostAddr (  const char *    host ) 
 

char* LookupHostName (  u_int32_t    addr ) 
 

u_int32_t LookupLocalAddr (  void    ) 
 


This document is generated by doxygen.