IP Utility Library Module

The IP utility library module has the file name ip.c. This module provides IP addressing routines. The Unix version of this API uses the TCP Berkeley socket interprocess communication method. The Windows version of this API uses the Winsock interprocess communication method.

Since the Future Lab QNX platform software does not use TCP for interprocess communication (QNX native message passing is the IPC method), this module is not available for QNX.

Here is a list of functions in the IP utility library module:

Module Dependencies

The following modules are required along with this module:

Just make sure you compile and link this module along with the other required modules.

Module Header Files

This module requires the header files:

Module Functions

ip_host2ip

Prototype  : int ip_host2ip(char *hostname, char *ipaddr)
Parameters :
      Name : hostname
Description: host name

      Name : ipaddr
Description: returned IP address

Returns    : TRUE upon success, FALSE otherwise

This function will resolve hostname to an IP address. Upon success, the IP address will be loaded into ipaddr.

ip_ip2host

Prototype  : int ip_ip2host(char *ipaddr, char *hostname)
Parameters :
      Name : ipaddr
Description: IP address

      Name : hostname
Description: returned host name

Returns    : TRUE upon success, FALSE otherwise

This function will resolve ipaddr to a host name. Upon success, the host name will be loaded into hostname.

isip

Prototype   : int isip(char *str)
Parameters  :
      Name  : str
Description : input string

Returns     : TRUE upon success, FALSE otherwise

This function tests a string to see if it is a valid TCP/IP address. The string is checked for the presence of four period delimited words each consisting of a number between zero and 255.

Goto Top | GPL Software Overview | GPL Library
Future Lab Home | Contact Webmaster | Feedback

Copyright © 2000-2006 Future Lab, Last Updated Jun 30, 2006