#include "lwip/api_msg.h"#include "lwip/pbuf.h"Include dependency graph for tcpip.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
| struct | tcpip_msg |
Enumerations | |
| enum | tcpip_msg_type { TCPIP_MSG_API, TCPIP_MSG_INPUT, TCPIP_MSG_CALLBACK } |
Functions | |
| void | tcpip_init (void(*tcpip_init_done)(void *), void *arg) |
| void | tcpip_apimsg (struct api_msg *apimsg) |
| err_t | tcpip_input (struct pbuf *p, struct netif *inp) |
| err_t | tcpip_callback (void(*f)(void *ctx), void *ctx) |
| void | tcpip_tcp_timer_needed (void) |
|
|
Definition at line 45 of file tcpip.h.
00045 {
00046 TCPIP_MSG_API,
00047 TCPIP_MSG_INPUT,
00048 TCPIP_MSG_CALLBACK
00049 };
|
|
|
Definition at line 159 of file tcpip.c. References mbox, MEMP_API_MSG, memp_free(), memp_mallocp(), MEMP_TCPIP_MSG, NULL, sys_mbox_post(), and TCPIP_MSG_API. Referenced by api_msg_post().
00160 {
00161 struct tcpip_msg *msg;
00162 msg = memp_mallocp(MEMP_TCPIP_MSG);
00163 if(msg == NULL) {
00164 memp_free(MEMP_API_MSG, apimsg);
00165 return;
00166 }
00167 msg->type = TCPIP_MSG_API;
00168 msg->msg.apimsg = apimsg;
00169 sys_mbox_post(mbox, msg);
00170 }
|
Here is the call graph for this function:
|
||||||||||||
|
Definition at line 142 of file tcpip.c. References ERR_MEM, ERR_OK, mbox, memp_mallocp(), MEMP_TCPIP_MSG, NULL, sys_mbox_post(), and TCPIP_MSG_CALLBACK.
00143 {
00144 struct tcpip_msg *msg;
00145
00146 msg = memp_mallocp(MEMP_TCPIP_MSG);
00147 if(msg == NULL) {
00148 return ERR_MEM;
00149 }
00150
00151 msg->type = TCPIP_MSG_CALLBACK;
00152 msg->msg.cb.f = f;
00153 msg->msg.cb.ctx = ctx;
00154 sys_mbox_post(mbox, msg);
00155 return ERR_OK;
00156 }
|
Here is the call graph for this function:
|
||||||||||||
|
Definition at line 173 of file tcpip.c. References mbox, NULL, sys_mbox_new(), sys_thread_new(), tcpip_init_done, tcpip_init_done_arg, and tcpip_thread().
00174 {
00175 tcpip_init_done = initfunc;
00176 tcpip_init_done_arg = arg;
00177 mbox = sys_mbox_new();
00178 sys_thread_new((void *)tcpip_thread, NULL, 0);
00179
00180 }
|
Here is the call graph for this function:
|
||||||||||||
|
Definition at line 124 of file tcpip.c. References ERR_MEM, ERR_OK, mbox, memp_mallocp(), MEMP_TCPIP_MSG, NULL, pbuf_free(), sys_mbox_post(), and TCPIP_MSG_INPUT.
00125 {
00126 struct tcpip_msg *msg;
00127
00128 msg = memp_mallocp(MEMP_TCPIP_MSG);
00129 if(msg == NULL) {
00130 pbuf_free(p);
00131 return ERR_MEM;
00132 }
00133
00134 msg->type = TCPIP_MSG_INPUT;
00135 msg->msg.inp.p = p;
00136 msg->msg.inp.netif = inp;
00137 sys_mbox_post(mbox, msg);
00138 return ERR_OK;
00139 }
|
Here is the call graph for this function:
|
|
|
1.3.4