|
LibXenon
Bare-metal Xbox 360 homebrew library
|
#include "lwip/opt.h"#include "lwip/sys.h"#include "lwip/memp.h"#include "lwip/mem.h"#include "lwip/pbuf.h"#include "lwip/tcpip.h"#include "lwip/init.h"#include "netif/etharp.h"#include "netif/ppp_oe.h"
Go to the source code of this file.
Functions | |
| err_t | tcpip_input (struct pbuf *p, struct netif *inp) |
| err_t | tcpip_callback_with_block (tcpip_callback_fn function, void *ctx, u8_t block) |
| struct tcpip_callback_msg * | tcpip_callbackmsg_new (tcpip_callback_fn function, void *ctx) |
| void | tcpip_callbackmsg_delete (struct tcpip_callback_msg *msg) |
| err_t | tcpip_trycallback (struct tcpip_callback_msg *msg) |
| void | tcpip_init (tcpip_init_done_fn initfunc, void *arg) |
| err_t | pbuf_free_callback (struct pbuf *p) |
| err_t | mem_free_callback (void *m) |
Sequential API Main thread module
Definition in file tcpip.c.
| err_t mem_free_callback | ( | void * | m | ) |
| err_t tcpip_callback_with_block | ( | tcpip_callback_fn | function, |
| void * | ctx, | ||
| u8_t | block | ||
| ) |
Call a specific function in the thread context of tcpip_thread for easy access synchronization. A function called in that way may access lwIP core code without fearing concurrent access.
| f | the function to call |
| ctx | parameter passed to f |
| block | 1 to block until the request is posted, 0 to non-blocking mode |
| void tcpip_callbackmsg_delete | ( | struct tcpip_callback_msg * | msg | ) |
Free a callback message allocated by tcpip_callbackmsg_new().
| msg | the message to free |
| struct tcpip_callback_msg * tcpip_callbackmsg_new | ( | tcpip_callback_fn | function, |
| void * | ctx | ||
| ) |
Allocate a structure for a static callback message and initialize it. This is intended to be used to send "static" messages from interrupt context.
| function | the function to call |
| ctx | parameter passed to function |
| void tcpip_init | ( | tcpip_init_done_fn | initfunc, |
| void * | arg | ||
| ) |
Pass a received packet to tcpip_thread for input processing
| p | the received packet, p->payload pointing to the Ethernet header or to an IP header (if inp doesn't have NETIF_FLAG_ETHARP or NETIF_FLAG_ETHERNET flags) |
| inp | the network interface on which the packet was received |
| err_t tcpip_trycallback | ( | struct tcpip_callback_msg * | msg | ) |
Try to post a callback-message to the tcpip_thread mbox This is intended to be used to send "static" messages from interrupt context.
| msg | pointer to the message to post |