inet aton

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


ttUser32Bit inet_aton (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

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


Table of Contents >> Programmer's Reference