tfGetDefaultGateway

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>



int tfGetDefaultGateway (
ttUserInterface interfaceHandle,
ttUserIpAddress * gatewayIpAddressPtr
);
Conditional parameter. See details in Parameters below.


Function Description

This function is called from the socket interface to get the default gateway IP address. The default gateway IP address will be stored in network byte order.


Parameters


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid parameter.
  • TM_ENOENT
    No default gateway.


Table of Contents >> Programmer's Reference