5 #ifndef __CNET_CHNL_OPT
6 #define __CNET_CHNL_OPT
14 #include <sys/socket.h>
26 int (*setfunc)(
struct chnl *ch, int, int,
const void *, uint32_t);
27 int (*getfunc)(
struct chnl *ch, int, int,
void *, uint32_t *);
39 int cnet_chnl_opt_add(
struct chnl_optsw *ps);
58 int cnet_chnl_opt_iterate_set(
struct chnl *ch,
int level,
int optname,
const void *optval,
78 int cnet_chnl_opt_iterate_get(
struct chnl *ch,
int level,
int optname,
void *optval,
92 uint32_t chnl_optval_get(
const void *optval, uint32_t optlen);
110 CNDP_API
int chnl_set_opt(
int cd,
int level,
int optname,
const void *optval,
int optlen);
128 CNDP_API
int chnl_get_opt(
int cd,
int level,
int optname,
void *optval, socklen_t *optlen);
CNDP_API int chnl_set_opt(int cd, int level, int optname, const void *optval, int optlen)
Set a channel option.
CNDP_API int chnl_get_opt(int cd, int level, int optname, void *optval, socklen_t *optlen)
Get a channel option.