ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

api_msg Struct Reference

api_msg Struct Reference

This struct includes everything that is necessary to execute a function for a netconn in another thread context (mainly used to process netconns in the tcpip_thread context to be thread safe). More...

#include <api_msg.h>

Data Fields

struct netconnconn
 The netconn which to process - always needed: it includes the semaphore which is used to block the application thread until the function finished.
err_t err
 The return value of the function executed in tcpip_thread.
void(* function )(struct api_msg_msg *msg)
 function to execute in tcpip_thread context
struct api_msg_msg msg
 arguments for this function
struct netbufb
 used for lwip_netconn_do_send

Detailed Description

This struct includes everything that is necessary to execute a function for a netconn in another thread context (mainly used to process netconns in the tcpip_thread context to be thread safe).

This struct contains a function to execute in another thread context and a struct api_msg_msg that serves as an argument for this function.

This is passed to tcpip_apimsg to execute functions in tcpip_thread context.

Definition at line 80 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.


Field Documentation

struct netbuf* b

used for lwip_netconn_do_send

Definition at line 89 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.

struct netconn* conn

The netconn which to process - always needed: it includes the semaphore which is used to block the application thread until the function finished.

Definition at line 83 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.

The return value of the function executed in tcpip_thread.

Definition at line 85 of file FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h.

void(* function)(struct api_msg_msg *msg)

function to execute in tcpip_thread context

Definition at line 122 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.

struct api_msg_msg msg

arguments for this function

Definition at line 124 of file unsupported/net/lwip/lwip/include/lwip/api_msg.h.