Microchip® Advanced Software Framework

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

#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. More...
 
err_t err
 The return value of the function executed in tcpip_thread. More...
 
union {
   struct {
      u8_t   local
 
   }   ad
 used for lwip_netconn_do_getaddr More...
 
   struct netbuf *   b
 used for lwip_netconn_do_send More...
 
   struct {
      u16_t   port
 
   }   bc
 used for lwip_netconn_do_bind and lwip_netconn_do_connect More...
 
   struct {
      enum netconn_igmp   join_or_leave
 
   }   jl
 used for lwip_netconn_do_join_leave_group More...
 
   struct {
      u8_t   proto
 
   }   n
 used for lwip_netconn_do_newconn More...
 
   struct {
      u32_t   len
 
   }   r
 used for lwip_netconn_do_recv More...
 
   struct {
      u8_t   shut
 
   }   sd
 used for lwip_netconn_do_close (/shutdown) More...
 
   struct {
      u8_t   apiflags
 
      const void *   dataptr
 
      size_t   len
 
   }   w
 used for lwip_netconn_do_write More...
 
msg
 Depending on the executed function, one of these union members is used. More...
 

struct { ... } api_msg_msg::ad

used for lwip_netconn_do_getaddr

Referenced by lwip_netconn_do_getaddr().

u8_t api_msg_msg::apiflags
struct netbuf* api_msg_msg::b

used for lwip_netconn_do_send

Referenced by lwip_netconn_do_send().

struct { ... } api_msg_msg::bc

used for lwip_netconn_do_bind and lwip_netconn_do_connect

Referenced by lwip_netconn_do_bind(), and lwip_netconn_do_connect().

struct netconn* api_msg_msg::conn
const void* api_msg_msg::dataptr
struct { ... } api_msg_msg::jl

used for lwip_netconn_do_join_leave_group

Referenced by lwip_netconn_do_join_leave_group().

enum netconn_igmp api_msg_msg::join_or_leave
size_t api_msg_msg::len
u32_t api_msg_msg::len
u8_t api_msg_msg::local
struct { ... } api_msg_msg::n

used for lwip_netconn_do_newconn

Referenced by pcb_new().

u16_t api_msg_msg::port
u8_t api_msg_msg::proto
struct { ... } api_msg_msg::r

used for lwip_netconn_do_recv

Referenced by lwip_netconn_do_recv().

struct { ... } api_msg_msg::sd

used for lwip_netconn_do_close (/shutdown)

Referenced by lwip_netconn_do_close(), lwip_netconn_do_close_internal(), and lwip_netconn_do_delconn().

u8_t api_msg_msg::shut
struct { ... } api_msg_msg::w

used for lwip_netconn_do_write

Referenced by lwip_netconn_do_write(), and lwip_netconn_do_writemore().