| 
    CNDP
    22.08.0
    
   | 
 
#include <stdint.h>#include <sys/socket.h>Go to the source code of this file.
Functions | |
| CNDP_API int | chnl_set_opt (int cd, int level, int optname, const void *optval, int optlen) | 
| Set a channel option.  More... | |
| CNDP_API int | chnl_get_opt (int cd, int level, int optname, void *optval, socklen_t *optlen) | 
| Get a channel option.  More... | |
CNET Channel option routines and constants.
Definition in file cnet_chnl_opt.h.
| CNDP_API int chnl_set_opt | ( | int | cd, | 
| int | level, | ||
| int | optname, | ||
| const void * | optval, | ||
| int | optlen | ||
| ) | 
Set a channel option.
| cd | The channel descriptor to use for the set | 
| level | The level of the option to set | 
| optname | The name of the option to set | 
| optval | The option value to set | 
| optlen | The option length for the set | 
| CNDP_API int chnl_get_opt | ( | int | cd, | 
| int | level, | ||
| int | optname, | ||
| void * | optval, | ||
| socklen_t * | optlen | ||
| ) | 
Get a channel option.
| cd | The channel descriptor to use for the get | 
| level | The level of the option to get | 
| optname | The name of the option to get | 
| optval | The option value to get | 
| optlen | The option length for the get |