|
libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
|
#include <sock.h>


Public Member Functions | |
| bool | setPtpDstMacStr (const std::string &string) |
| bool | setPtpDstMac (const Binary &ptp_dst_mac) |
| bool | setPtpDstMac (const void *ptp_dst_mac, size_t len) |
| bool | setPtpDstMac (const ConfigFile &cfg, const std::string §ion="") |
| bool | setSocketPriority (uint8_t socket_priority) |
| bool | setSocketPriority (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="") |
Public Member Functions inherited from SockBase | |
| virtual | ~SockBase () |
| void | close () |
| bool | init () |
| bool | send (const void *msg, size_t len) const |
| bool | send (const Buf &buf, size_t len) const |
| bool | sendBuf (const Buf &buf, size_t len) const |
| ssize_t | rcv (void *buf, size_t bufSize, bool block=false) const |
| ssize_t | rcv (Buf &buf, bool block=false) const |
| ssize_t | rcvBuf (Buf &buf, bool block=false) const |
| int | getFd () const |
| int | fileno () const |
| bool | poll (uint64_t timeout_ms=0) const |
| bool | tpoll (uint64_t &timeout_ms) const |
Raw socket that uses PTP over Ethernet
| bool SockRaw::setPtpDstMac | ( | const Binary & | ptp_dst_mac | ) |
Set PTP multicast address using binary from
| [in] | ptp_dst_mac | address in binary string object |
| bool SockRaw::setPtpDstMac | ( | const ConfigFile & | cfg, |
| const std::string & | section = "" |
||
| ) |
Set PTP multicast address using configuration file
| [in] | cfg | reference to configuration file object |
| [in] | section | in configuration file |
| bool SockRaw::setPtpDstMac | ( | const void * | ptp_dst_mac, |
| size_t | len | ||
| ) |
Set PTP multicast address using binary from
| [in] | ptp_dst_mac | address in binary form |
| [in] | len | address length |
| bool SockRaw::setPtpDstMacStr | ( | const std::string & | string | ) |
Set PTP multicast address using string from
| [in] | string | address in a string object |
| bool SockRaw::setSocketPriority | ( | const ConfigFile & | cfg, |
| const std::string & | section = "" |
||
| ) |
Set socket priority using configuration file
| [in] | cfg | reference to configuration file object |
| [in] | section | in configuration file |
| bool SockRaw::setSocketPriority | ( | uint8_t | socket_priority | ) |
Set socket priority
| [in] | socket_priority | socket priority value |