erkin yucel / mbed-os

Dependents:   BLE_file_test BLE_Blink ExternalEncoder

Embed: (wiki syntax)

« Back to documentation index

lwip_setgetsockopt_data Struct Reference

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) More...

#include <sockets.h>

Data Fields

int s
 socket index for which to change options
int level
 level of the option to process
int optname
 name of the option to process
u8_t optval [LWIP_SETGETSOCKOPT_MAXOPTLEN]
 set: value to set the option to get: value of the option is stored here
socklen_t optlen
 size of *optval
err_t err
 if an error occurs, it is temporarily stored here
void * completed_sem
 semaphore to wake up the calling task
struct lwip_sock * sock
 socket struct for which to change options
void * optval
 set: value to set the option to get: value of the option is stored here
socklen_t * optlen
 size of *optval

Detailed Description

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

Definition at line 120 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.


Field Documentation

semaphore to wake up the calling task

Definition at line 142 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

if an error occurs, it is temporarily stored here

if an error occures, it is temporarily stored here

Definition at line 140 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

int level

level of the option to process

Definition at line 124 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

socklen_t optlen

size of *optval

Definition at line 138 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

socklen_t* optlen

size of *optval

Definition at line 120 of file sockets.c.

int optname

name of the option to process

Definition at line 126 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

u8_t optval[LWIP_SETGETSOCKOPT_MAXOPTLEN]

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

Definition at line 130 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

void* optval

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

Definition at line 118 of file sockets.c.

int s

socket index for which to change options

Definition at line 122 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h.

struct lwip_sock* sock

socket struct for which to change options

Definition at line 107 of file sockets.c.