#include <INET.H>
Link against:
estlib.lib
inet_network inet_addr
Description
IMPORT_C unsigned long inet_addr(const char *);
Description
Ascii internet address interpretation routine.
Parameters
const char * |
ascii representation of an Internet address
|
|
Return value
unsigned long |
The value returned is in network order.
|
|
inet_aton(const char *,struct in_addr *)
IMPORT_C int inet_aton(const char *, struct in_addr *);
Description
Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. This replaces inet_addr,
the return value from which cannot distinguish between failure and a local broadcast address.
Parameters
const char * |
ascii representation of an Internet address
|
struct in_addr in_addr * |
internet address
|
|
Return value
int |
1 if the address is valid, 0 if not.
|
|
IMPORT_C unsigned long inet_lnaof(struct in_addr);
Description
Return the local network address portion of an internet address; handles class a/b/c network number formats.
Parameters
Return value
unsigned long |
the local network address portion of an internet address
|
|
inet_makeaddr(u_long,u_long)
IMPORT_C struct in_addr inet_makeaddr(u_long, u_long);
Description
Parameters
Return value
IMPORT_C unsigned long inet_netof(struct in_addr);
Description
Parameters
Return value
unsigned long |
the network number from an internet address; handles class a/b/c network #'s.
|
|
IMPORT_C char* inet_ntoa(struct in_addr);
Description
Parameters
Return value