libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Protected Member Functions | List of all members
SockIp6 Class Reference

UDP over IP version 6 socket. More...

#include <sock.h>

Inheritance diagram for SockIp6:
Inheritance graph
[legend]
Collaboration diagram for SockIp6:
Collaboration graph
[legend]

Protected Member Functions

bool setScope (uint8_t udp6_scope)
 
bool setScope (const ConfigFile &cfg, const std::string &section="")
 
- 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
 

Additional Inherited Members

- Public Member Functions inherited from SockIp
bool setUdpTtl (uint8_t udp_ttl)
 
bool setUdpTtl (const ConfigFile &cfg, const std::string &section="")
 
- 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 &section="")
 
bool setAllInit (const IfInfo &ifObj, const ConfigFile &cfg, const std::string &section="")
 

Detailed Description

UDP over IP version 6 socket.

Member Function Documentation

◆ setScope() [1/2]

bool SockIp6::setScope ( const ConfigFile cfg,
const std::string &  section = "" 
)
protected

Set IP version 6 address scope using configuration file

Parameters
[in]cfgreference to configuration file object
[in]sectionin configuration file
Returns
true if IPv6 scope is updated
Note
IPv6 scope can not be changed after initializing. User can close the socket, change this value, and initialize a new socket.
calling without section will fetch value from "global" section

◆ setScope() [2/2]

bool SockIp6::setScope ( uint8_t  udp6_scope)
protected

< Set IP version 6 address scope

Parameters
[in]udp6_scopeIP version 6 address scope
Returns
true if IPv6 scope is updated
Note
IPv6 scope can not be changed after initializing. User can close the socket, change this value, and initialize a new socket.

The documentation for this class was generated from the following file: