TSDuck v3.40-4148
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

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 IPv4 multicast loop socket option.
 
using ts::SysSocketMulticastLoopType6 = platform_specific
 Integer data type for the IPv6 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::SysSocketTClassType = platform_specific
 Integer data type for the Traffic Class (TCLASS) IPv6 socket option.
 
using ts::SysSocketTOSType = platform_specific
 Integer data type for the Type Of Service (TOS) IPv4 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::SysSocketV6OnlyType = platform_specific
 Integer data type for the IPV6_V6ONLY socket option.
 
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::IPInitialize (Report &=(ts::CerrReport::Instance()))
 Initialize the IP libraries in the current process.
 
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".
 

Detailed Description

Utilities for IP networking.