12 #ifndef __PTPMGMT_C_SOCK_H
13 #define __PTPMGMT_C_SOCK_H
16 #ifdef __PTPMGMT_HAVE_SYS_TYPES_H
17 #include <sys/types.h>
160 const char *section);
224 const char *addrStr);
238 const char *addrStr);
254 size_t *fromSize,
bool block);
366 const char *section);
389 const char *section);
426 const char *section);
451 const char *section);
C interface to configuration class.
C interface to network and PHC classes.
ptpmgmt_sk ptpmgmt_sk_alloc(enum ptpmgmt_socket_class type)
struct ptpmgmt_sk_t * ptpmgmt_sk
Definition: sock.h:31
ptpmgmt_socket_class
Definition: sock.h:457
const struct ptpmgmt_sk_t * const_ptpmgmt_sk
Definition: sock.h:34
bool(* setPeerAddress)(ptpmgmt_sk sk, const char *string)
Definition: sock.h:141
bool(* setPeerAddressAbstract)(ptpmgmt_sk sk, const char *string)
Definition: sock.h:150
bool(* setUdpTtlCfg)(ptpmgmt_sk sk, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:365
int(* getFd)(const_ptpmgmt_sk sk)
Definition: sock.h:91
bool(* setPtpDstMac)(ptpmgmt_sk sk, const void *ptp_dst_mac, size_t len)
Definition: sock.h:412
bool(* isSelfAddressAbstract)(const_ptpmgmt_sk sk)
Definition: sock.h:172
bool(* setPtpDstMacCfg)(ptpmgmt_sk sk, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:425
void(* close)(ptpmgmt_sk sk)
Definition: sock.h:55
bool(* sendToA)(ptpmgmt_sk sk, const void *msg, size_t len, const char *addrStr)
Definition: sock.h:237
bool(* setSocketPriorityCfg)(ptpmgmt_sk sk, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:450
bool(* setSelfAddress)(ptpmgmt_sk sk, const char *string)
Definition: sock.h:182
bool(* init)(ptpmgmt_sk sk)
Definition: sock.h:61
bool(* setIfUsingName)(ptpmgmt_sk sk, const char *ifName)
Definition: sock.h:291
bool(* setAll)(ptpmgmt_sk sk, const_ptpmgmt_ifInfo ifObj, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:325
bool(* setPeerAddressCfg)(ptpmgmt_sk sk, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:159
ssize_t(* rcvFrom)(ptpmgmt_sk sk, void *buf, size_t bufSize, char *from, size_t *fromSize, bool block)
Definition: sock.h:253
bool(* setAllInit)(ptpmgmt_sk sk, const_ptpmgmt_ifInfo ifObj, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:340
bool(* isLastFromAbstract)(const_ptpmgmt_sk sk)
Definition: sock.h:281
bool(* setDefSelfAddress)(ptpmgmt_sk sk, const char *rootBase, const char *useDef)
Definition: sock.h:205
bool(* tpoll)(ptpmgmt_sk sk, uint64_t *timeout_ms)
Definition: sock.h:122
bool(* sendTo)(ptpmgmt_sk sk, const void *msg, size_t len, const char *addrStr)
Definition: sock.h:223
bool(* isPeerAddressAbstract)(const_ptpmgmt_sk sk)
Definition: sock.h:134
ssize_t(* rcv)(ptpmgmt_sk sk, void *buf, size_t bufSize, bool block)
Definition: sock.h:82
bool(* setScope)(ptpmgmt_sk sk, uint8_t udp6_scope)
Definition: sock.h:376
bool(* setPtpDstMacStr)(ptpmgmt_sk sk, const char *string)
Definition: sock.h:401
bool(* setScopeCfg)(ptpmgmt_sk sk, const_ptpmgmt_cfg cfg, const char *section)
Definition: sock.h:388
bool(* setIf)(ptpmgmt_sk sk, const_ptpmgmt_ifInfo ifObj)
Definition: sock.h:311
int(* fileno)(const_ptpmgmt_sk sk)
Definition: sock.h:100
bool(* setUdpTtl)(ptpmgmt_sk sk, uint8_t udp_ttl)
Definition: sock.h:352
bool(* send)(ptpmgmt_sk sk, const void *msg, size_t len)
Definition: sock.h:71
bool(* setSelfAddressAbstract)(ptpmgmt_sk sk, const char *string)
Definition: sock.h:194
bool(* setSocketPriority)(ptpmgmt_sk sk, uint8_t socket_priority)
Definition: sock.h:438
void(* free)(ptpmgmt_sk sk)
Definition: sock.h:49
bool(* poll)(ptpmgmt_sk sk, uint64_t timeout_ms)
Definition: sock.h:111
bool(* setIfUsingIndex)(ptpmgmt_sk sk, int ifIndex)
Definition: sock.h:301
ssize_t(* rcvFromA)(ptpmgmt_sk sk, void *buf, size_t bufSize, bool block)
Definition: sock.h:266