libptpmgmt
1.4
libptpmgmt library that provides the functionality of linuxptp pmc
|
Base for UDP sockets. More...
#include <sock.h>
Public Member Functions | |
bool | setUdpTtl (uint8_t udp_ttl) |
bool | setUdpTtl (const ConfigFile &cfg, const std::string §ion="") |
Public Member Functions inherited from SockBaseIf | |
bool | setIfUsingName (const std::string &ifName) |
bool | setIfUsingIndex (int ifIndex) |
bool | setIf (const IfInfo &ifObj) |
bool | setAll (const IfInfo &ifObj, const ConfigFile &cfg, const std::string §ion="") |
bool | setAllInit (const IfInfo &ifObj, const ConfigFile &cfg, const std::string §ion="") |
Additional Inherited Members | |
Protected Member Functions inherited from SockBase | |
void | close () |
bool | init () |
bool | send (const void *msg, size_t len) |
bool | send (Buf &buf, size_t len) |
bool | sendBuf (Buf &buf, size_t len) |
ssize_t | rcv (void *buf, size_t bufSize, bool block=false) |
ssize_t | rcv (Buf &buf, bool block=false) |
ssize_t | rcvBuf (Buf &buf, bool block=false) |
int | getFd () const |
int | fileno () const |
bool | poll (uint64_t timeout_ms=0) const |
bool | tpoll (uint64_t &timeout_ms) const |
Base for UDP sockets.
provide functions to set IP TTL, send and receive functions for UDP sockets
bool SockIp::setUdpTtl | ( | const ConfigFile & | cfg, |
const std::string & | section = "" |
||
) |
Set IP ttl value using configuration file
[in] | cfg | reference to configuration file object |
[in] | section | in configuration file |
bool SockIp::setUdpTtl | ( | uint8_t | udp_ttl | ) |
< Set IP ttl value
[in] | udp_ttl | IP time to live |