TSDuck v3.40-3968
MPEG Transport Stream Toolkit
|
Utilities for IP networking. More...
Namespaces | |
namespace | ts |
TSDuck namespace, containing all TSDuck classes and functions. | |
Typedefs | |
using | ts::SysRecvBufferPointer = platform_specific |
Pointer type for the address of the data buffer for a recv() system call. | |
using | ts::SysSendBufferPointer = platform_specific |
Pointer type for the address of the data buffer for a send() system call. | |
using | ts::SysSendSizeType = platform_specific |
Integer type for the size of the data buffer for a send() system call. | |
using | ts::SysSocketLengthType = platform_specific |
Integer data type which receives the length of a struct sockaddr. | |
using | ts::SysSocketLingerType = platform_specific |
Integer data type for the field l_linger in the struct linger socket option. | |
using | ts::SysSocketMulticastLoopType = platform_specific |
Integer data type for the multicast loop socket option. | |
using | ts::SysSocketMulticastTTLType = platform_specific |
Integer data type for the multicast Time To Live (TTL) socket option. | |
using | ts::SysSocketPktInfoType = platform_specific |
Integer data type for the IP_PKTINFO socket option. | |
using | ts::SysSocketSignedSizeType = platform_specific |
Integer data type for a "signed size" returned from send() or recv() system calls. | |
using | ts::SysSocketTOSType = platform_specific |
Integer data type for the Type Of Service (TOS) socket option. | |
using | ts::SysSocketTTLType = platform_specific |
Integer data type for the Time To Live (TTL) socket option. | |
using | ts::SysSocketType = platform_specific |
Data type for socket descriptors as returned by the socket() system call. | |
using | ts::SysSockOptPointer = platform_specific |
Pointer type for the address of a socket option value. | |
Functions | |
const std::error_category & | ts::getaddrinfo_category () |
Get the std::error_category for getaddrinfo() error code (Unix only). | |
bool | ts::GetLocalIPAddresses (IPAddressMaskVector &addresses, bool loopback=true, IP gen=IP::Any, Report &report=(ts::CerrReport::Instance())) |
Get the list of all local IP addresses in the system with their network masks. | |
bool | ts::GetLocalIPAddresses (IPAddressVector &addresses, bool loopback=true, IP gen=IP::Any, Report &report=(ts::CerrReport::Instance())) |
Get the list of all local IP addresses in the system. | |
bool | ts::IPInitialize (Report &=(ts::CerrReport::Instance())) |
Initialize the IP libraries in the current process. | |
bool | ts::IsLocalIPAddress (const IPAddress &address) |
Check if a local system interface has a specified IP address. | |
int | ts::SysCloseSocket (SysSocketType sock) |
The close() system call which applies to socket devices. | |
Variables | |
constexpr int | ts::SYS_SOCKET_ERR_NOTCONN = platform_specific |
System error code value meaning "peer socket not connected". | |
constexpr int | 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. | |
constexpr int | ts::SYS_SOCKET_SHUT_RD = platform_specific |
Name of the option for the shutdown() system call which means "close on receive side". | |
constexpr int | ts::SYS_SOCKET_SHUT_RDWR = platform_specific |
Name of the option for the shutdown() system call which means "close on both directions". | |
constexpr int | ts::SYS_SOCKET_SHUT_WR = platform_specific |
Name of the option for the shutdown() system call which means "close on send side". | |
Utilities for IP networking.