Microchip® Advanced Software Framework

lwip_setgetsockopt_data Struct Reference

This struct is used to pass data to the set/getsockopt_internal functions running in tcpip_thread context (only a void* is allowed)

Data Fields

err_t err
 if an error occures, it is temporarily stored here More...
 
int level
 level of the option to process More...
 
socklen_toptlen
 size of *optval More...
 
int optname
 name of the option to process More...
 
voidoptval
 set: value to set the option to get: value of the option is stored here More...
 
struct lwip_socksock
 socket struct for which to change options More...
 

err_t lwip_setgetsockopt_data::err

if an error occures, it is temporarily stored here

Referenced by lwip_getsockopt(), lwip_setsockopt(), and lwip_setsockopt_internal().

int lwip_setgetsockopt_data::level

level of the option to process

Referenced by lwip_getsockopt(), lwip_getsockopt_internal(), lwip_setsockopt(), and lwip_setsockopt_internal().

socklen_t* lwip_setgetsockopt_data::optlen

size of *optval

Referenced by lwip_getsockopt(), and lwip_setsockopt().

int lwip_setgetsockopt_data::optname
void* lwip_setgetsockopt_data::optval

set: value to set the option to get: value of the option is stored here

Referenced by lwip_getsockopt(), lwip_getsockopt_internal(), lwip_setsockopt(), and lwip_setsockopt_internal().

struct lwip_sock* lwip_setgetsockopt_data::sock

socket struct for which to change options

Referenced by lwip_getsockopt(), lwip_getsockopt_internal(), lwip_setsockopt(), and lwip_setsockopt_internal().