Simon Cooksey / mbed-os
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

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 sockets.h.


Field Documentation

semaphore to wake up the calling task

Definition at line 142 of file sockets.h.

if an error occurs, it is temporarily stored here

Definition at line 140 of file sockets.h.

int level

level of the option to process

Definition at line 124 of file sockets.h.

socklen_t optlen

size of *optval

Definition at line 138 of file sockets.h.

int optname

name of the option to process

Definition at line 126 of file 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 sockets.h.

int s

socket index for which to change options

Definition at line 122 of file sockets.h.