Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

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.
struct netbufb
 used for lwip_netconn_do_send
struct netvectorvector
 current vector to write
u16_t vector_cnt
 number of unwritten vectors
size_t vector_off
 offset into current vector
size_t len
 total length across vectors
size_t offset
 offset into total length/output of bytes written when err == ERR_OK

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

Definition at line 79 of file api_msg.h.


Field Documentation

struct netbuf* b

used for lwip_netconn_do_send

Definition at line 88 of file 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 82 of file api_msg.h.

The return value of the function executed in tcpip_thread.

Definition at line 84 of file api_msg.h.

size_t len

total length across vectors

Definition at line 114 of file api_msg.h.

size_t offset

offset into total length/output of bytes written when err == ERR_OK

Definition at line 116 of file api_msg.h.

struct netvector* vector

current vector to write

Definition at line 108 of file api_msg.h.

u16_t vector_cnt

number of unwritten vectors

Definition at line 110 of file api_msg.h.

size_t vector_off

offset into current vector

Definition at line 112 of file api_msg.h.