INtime SDK Help
inet (inet_addr, inet_lnaof, inet_makeaddr, inet_netof, inet_network, inet_ntoa) (legacy networking)
INtime Help

The inet_addr( ), inet_lnaof( ), inet_makeaddr( ), inet_netof( ), inet_network( ), and inet_ntoa( ) functions manipulate Internet addresses.

unsigned long inet_addr(cp) 
  char *cp; 

int inet_lnaof(in) 
  struct in_addr in; 

struct in_addr inet_makeaddr(net, host) 
  int net, host; 

int inet_netof(in) 
  struct in_addr in; 

unsigned long inet_network(cp) 
  char *cp; 

char *inet_ntoa(in) 
  struct in_addr in;

Remarks

The functions inet_addr( ) and inet_network( ) convert dot notation character strings to the equivalent Internet address and network number, respectively. The function inet_ntoa( ) performs the reverse operation, converting an Internet address to the equivalent dot notation character string.

The function inet_makeaddr( ) constructs an Internet address from a network number and host address. The functions inet_netof( ) and inet_lnaof( ) return the network and local network portions, respectively, of the Internet number passed as an argument.

All functions correctly handle Class A, B, and C Internet addresses; Internet addresses are returned in network byte order.

The dot notation form of an Internet address consists of one to four numbers separated by dots (periods). Each number can be expressed in decimal, octal (leading 0), or hexadecimal (leading 0x).

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/arpa/inet.h sys/types.h
arpa/inet.h
netiff3m.lib
See Also