inet addr

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


ttUser32Bit inet_addr (char * strPtr);


Function Description

This function converts an IP address from the decimal dotted notation to an unsigned long.


Parameters

  • strPtr
    The dotted string (i.e. "1.2.3.4").


Returns

  • TM_SOCKET_ERROR
    Failure.
  • (Other)
    The IP address in network byte order.


Table of Contents >> Programmer's Reference