TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
tsIPUtils.h File Reference

Utilities for IP networking. More...

Namespaces

 ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Typedefs

typedef platform_specific ts::SysRecvBufferPointer
 Pointer type for the address of the data buffer for a recv() system call. More...
 
typedef platform_specific ts::SysSendBufferPointer
 Pointer type for the address of the data buffer for a send() system call. More...
 
typedef platform_specific ts::SysSendSizeType
 Integer type for the size of the data buffer for a send() system call.
 
typedef int ts::SysSocketErrorCode
 Type for socket error codes as returned by system calls.
 
typedef platform_specific ts::SysSocketLengthType
 Integer data type which receives the length of a struct sockaddr. More...
 
typedef platform_specific ts::SysSocketLingerType
 Integer data type for the field l_linger in the struct linger socket option. More...
 
typedef platform_specific ts::SysSocketMulticastTTLType
 Integer data type for the multicast Time To Live (TTL) socket option. More...
 
typedef platform_specific ts::SysSocketPktInfoType
 Integer data type for the IP_PKTINFO socket option. More...
 
typedef platform_specific ts::SysSocketSignedSizeType
 Integer data type for a "signed size" returned from send() or recv() system calls. More...
 
typedef platform_specific ts::SysSocketTOSType
 Integer data type for the Type Of Service (TOS) socket option.
 
typedef platform_specific ts::SysSocketTTLType
 Integer data type for the Time To Live (TTL) socket option. More...
 
typedef platform_specific ts::SysSocketType
 Data type for socket descriptors as returned by the socket() system call.
 
typedef platform_specific ts::SysSockOptPointer
 Pointer type for the address of a socket option value. More...
 

Functions

bool ts::GetLocalIPAddresses (IPv4AddressMaskVector &addresses, Report &report=(*(static_cast< ts::Report * >(ts::CerrReport::Instance()))))
 Get the list of all local IPv4 addresses in the system with their network masks. More...
 
bool ts::GetLocalIPAddresses (IPv4AddressVector &addresses, Report &report=(*(static_cast< ts::Report * >(ts::CerrReport::Instance()))))
 Get the list of all local IPv4 addresses in the system. More...
 
bool ts::IPInitialize (Report &=(*(static_cast< ts::Report * >(ts::CerrReport::Instance()))))
 Initialize the IP libraries in the current process. More...
 
bool ts::IsLocalIPAddress (const IPv4Address &address)
 Check if a local system interface has a specified IP address. More...
 
SysSocketErrorCode ts::LastSysSocketErrorCode ()
 Get the error code of the last socket system call. More...
 
SysSocketErrorCode ts::SysCloseSocket (SysSocketType sock)
 The close() system call which applies to socket devices. More...
 
UString ts::SysSocketErrorCodeMessage (SysSocketErrorCode code=LastSysSocketErrorCode())
 Format a socket error code into a string. More...
 

Variables

constexpr SysSocketErrorCode ts::SYS_SOCKET_ERR_NOTCONN = platform_specific
 System error code value meaning "peer socket not connected".
 
constexpr SysSocketErrorCode ts::SYS_SOCKET_ERR_RESET = platform_specific
 System error code value meaning "connection reset by peer".
 
constexpr SysSocketType ts::SYS_SOCKET_INVALID = platform_specific
 Value of type SysSocketType which is returned by the socket() system call in case of failure. More...
 
constexpr int ts::SYS_SOCKET_SHUT_RD = platform_specific
 Name of the option for the shutdown() system call which means "close on receive side". More...
 
constexpr int ts::SYS_SOCKET_SHUT_RDWR = platform_specific
 Name of the option for the shutdown() system call which means "close on both directions". More...
 
constexpr int ts::SYS_SOCKET_SHUT_WR = platform_specific
 Name of the option for the shutdown() system call which means "close on send side". More...
 

Detailed Description

Utilities for IP networking.