NetBurner 3.5.0
PDF Version
 
IPADDR4 Functions

Network Interface functions with IPADDR4 return types. More...

Functions

IPADDR4 InterfaceIP (int interface)
 Returns the IPv4 IP address of the specified network interface.
 
IPADDR4 InterfaceAutoIP (int interface)
 Returns the IPv4 IP AutoIP address of the specified network interface.
 
IPADDR4 InterfaceDNS (int interface)
 Returns the IPv4 DNS address of the specified network interface.
 
IPADDR4 InterfaceDNS2 (int interface)
 Returns the second IPv4 DNS address of the specified network interface.
 
IPADDR4 InterfaceMASK (int interface)
 Returns the IPv4 network mask of the specified network interface.
 
IPADDR4 InterfaceGate (int interface)
 Returns the IPv4 gateway address of the specified network interface.
 

Detailed Description

Network Interface functions with IPADDR4 return types.

#include< netinterface.h >

Note
While the recommended method for getting and setting network interface parameters is to obtain a pointer to an InterfaceBlock, there are also non-member functions of the object that can be used for situations that are best served by a single function call, such as just getting a single IP address of an interface. When using those functions pay special attention to the return value type. While IPADDR should be used because it supports both IPADDR4 and IPADDR6 types automatically, some of these helper functions may specifically return an IPADDR4 type.

Function Documentation

◆ InterfaceAutoIP()

IPADDR4 InterfaceAutoIP ( int interface)

#include <netinterface.h>

Returns the IPv4 IP AutoIP address of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 IP address of type IPADDR4

◆ InterfaceDNS()

IPADDR4 InterfaceDNS ( int interface)

#include <netinterface.h>

Returns the IPv4 DNS address of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 IP address of type IPADDR4

◆ InterfaceDNS2()

IPADDR4 InterfaceDNS2 ( int interface)

#include <netinterface.h>

Returns the second IPv4 DNS address of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 IP address of type IPADDR4

◆ InterfaceGate()

IPADDR4 InterfaceGate ( int interface)

#include <netinterface.h>

Returns the IPv4 gateway address of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 IP address of type IPADDR4

◆ InterfaceIP()

IPADDR4 InterfaceIP ( int interface)

#include <netinterface.h>

Returns the IPv4 IP address of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 IP address of type IPADDR4

◆ InterfaceMASK()

IPADDR4 InterfaceMASK ( int interface)

#include <netinterface.h>

Returns the IPv4 network mask of the specified network interface.

Parameters
interfaceInterface number
Returns
IPv4 network mask of type IPADDR4