OpenDOF Project
Files | Macros | Functions | Variables
Inet Transport

The Inet Transport is an implementation of the DOF Transport Layer (see DTL) for TCP/IP and UDP/IP over IPv4 and IPv6. More...

Files

file  inet.h
 Header file for the Inet Transport interfaces, functions, defines and data types.
 

Macros

#define INETTRANSPORT_DEFAULT_UNICAST_PORT
 Platform-specific public function prototype declaration specification.
 
#define INETTRANSPORT_DEFAULT_MULTICAST_PORT
 Default DOF port for UDP multicast servers.
 

Functions

void InetTransport_Init (void)
 Initialize the Inet transport implementation for use.
 
void InetTransport_Shutdown (void)
 Release any state the Inet transport is currently maintaining, and return to an uninitialized state.
 
DOFAddress InetTransport_CreateAddress (const char *hostname, uint16 port)
 Creates a new address from hostname and port.
 
DOFAddress InetTransport_CreateAddress_Interface (const char *hostname, uint16 port, const char *iface)
 Create a new address from hostname, port and an interface name e.g.
 
DOFAddress InetTransport_CreateAddress_Sockaddr (const struct sockaddr *addr, uint32 addrSize)
 Create a new address from an existing, standard sockaddr structure.
 
DOFAddress InetTransport_CreateAddress_Sockaddr_Interface (const struct sockaddr *addr, uint32 addrSize, const char *iface)
 Create a new address from an existing, standard sockaddr structure and an interface index.
 
DOFAddress InetTransport_CreateIPv4Address (const uint8 addr[4], uint16 port)
 Create a new IPv4 address given an address and a port.
 
DOFAddress InetTransport_CreateIPv6Address (const uint8 addr[16], uint16 port)
 Create a new IPv6 address given an address and a port.
 
struct sockaddr * InetTransport_GetAddress (const DOFAddress addr)
 Return the standard sockaddr structure represented by the DOFAddress.
 
uint32 InetTransport_GetAddressSize (const DOFAddress addr)
 Return the size of the sockaddr structure available through InetTransport_GetAddress.
 
uint32 InetTransport_GetAddressInterface (const DOFAddress addr)
 Return the interface index of the InetTransport address.
 

Variables

const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV4 [4]
 Default DOF IPv4 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_NODE [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_LINK [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_SUBNET [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_ADMIN [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_SITE [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_ORG [16]
 Default DOF IPv6 multicast address.
 
const uint8 INETTRANSPORT_DEFAULT_MULTICAST_ADDRESS_IPV6_GLOBAL [16]
 Default DOF IPv6 multicast address.
 

Detailed Description

The Inet Transport is an implementation of the DOF Transport Layer (see DTL) for TCP/IP and UDP/IP over IPv4 and IPv6.

core-c-dof-inet-posix Version 2.0.2 Build 0
2017-04-26