32 #ifndef LWIP_HDR_API_MSG_H 33 #define LWIP_HDR_API_MSG_H 37 #if LWIP_NETCONN || LWIP_SOCKET 53 #if LWIP_MPU_COMPATIBLE 54 #define API_MSG_M_DEF(m) m 55 #define API_MSG_M_DEF_C(t, m) t m 56 #ifdef LWIP_NETCONN_SEM_PER_THREAD 57 #define API_MSG_M_DEF_SEM(m) *m 59 #define API_MSG_M_DEF_SEM(m) API_MSG_M_DEF(m) 62 #define API_MSG_M_DEF(m) *m 63 #define API_MSG_M_DEF_C(t, m) const t * m 64 #define API_MSG_M_DEF_SEM(m) API_MSG_M_DEF(m) 68 #define NETCONN_SHUT_RD 1 69 #define NETCONN_SHUT_WR 2 70 #define NETCONN_SHUT_RDWR (NETCONN_SHUT_RD | NETCONN_SHUT_WR) 100 u16_t API_MSG_M_DEF(port);
120 #if LWIP_SO_SNDTIMEO || LWIP_SO_LINGER 127 #if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) 132 enum netconn_igmp join_or_leave;
135 #if TCP_LISTEN_BACKLOG 141 #if LWIP_NETCONN_SEM_PER_THREAD 146 #if LWIP_NETCONN_SEM_PER_THREAD 147 #define LWIP_API_MSG_SEM(msg) ((msg)->op_completed_sem) 149 #define LWIP_API_MSG_SEM(msg) (&(msg)->conn->op_completed) 158 void (*
function)(
struct api_msg_msg *msg);
160 struct api_msg_msg msg;
170 #if LWIP_MPU_COMPATIBLE 177 #if LWIP_IPV4 && LWIP_IPV6 185 err_t API_MSG_M_DEF(err);
189 void lwip_netconn_do_newconn (
struct api_msg_msg *msg);
190 void lwip_netconn_do_delconn (
struct api_msg_msg *msg);
191 void lwip_netconn_do_bind (
struct api_msg_msg *msg);
192 void lwip_netconn_do_connect (
struct api_msg_msg *msg);
193 void lwip_netconn_do_disconnect (
struct api_msg_msg *msg);
194 void lwip_netconn_do_listen (
struct api_msg_msg *msg);
195 void lwip_netconn_do_send (
struct api_msg_msg *msg);
196 void lwip_netconn_do_recv (
struct api_msg_msg *msg);
197 void lwip_netconn_do_write (
struct api_msg_msg *msg);
198 void lwip_netconn_do_getaddr (
struct api_msg_msg *msg);
199 void lwip_netconn_do_close (
struct api_msg_msg *msg);
200 void lwip_netconn_do_shutdown (
struct api_msg_msg *msg);
201 #if LWIP_IGMP || (LWIP_IPV6 && LWIP_IPV6_MLD) 202 void lwip_netconn_do_join_leave_group(
struct api_msg_msg *msg);
206 void lwip_netconn_do_gethostbyname(
void *arg);
209 struct netconn* netconn_alloc(
enum netconn_type t, netconn_callback callback);
210 void netconn_free(
struct netconn *conn);
#define DNS_MAX_NAME_LENGTH