Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

api_msg.h File Reference

#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/sys.h"
#include "lwip/ip.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "lwip/api.h"

Include dependency graph for api_msg.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  api_msg
struct  api_msg_msg

Enumerations

enum  api_msg_type {
  API_MSG_NEWCONN, API_MSG_DELCONN, API_MSG_BIND, API_MSG_CONNECT,
  API_MSG_DISCONNECT, API_MSG_LISTEN, API_MSG_ACCEPT, API_MSG_SEND,
  API_MSG_RECV, API_MSG_WRITE, API_MSG_CLOSE, API_MSG_MAX
}

Functions

void api_msg_input (struct api_msg *msg)
void api_msg_post (struct api_msg *msg)


Enumeration Type Documentation

enum api_msg_type
 

Enumeration values:
API_MSG_NEWCONN 
API_MSG_DELCONN 
API_MSG_BIND 
API_MSG_CONNECT 
API_MSG_DISCONNECT 
API_MSG_LISTEN 
API_MSG_ACCEPT 
API_MSG_SEND 
API_MSG_RECV 
API_MSG_WRITE 
API_MSG_CLOSE 
API_MSG_MAX 

Definition at line 53 of file api_msg.h.

00053                   {
00054   API_MSG_NEWCONN,
00055   API_MSG_DELCONN,
00056   
00057   API_MSG_BIND,
00058   API_MSG_CONNECT,
00059   API_MSG_DISCONNECT,
00060 
00061   API_MSG_LISTEN,
00062   API_MSG_ACCEPT,
00063 
00064   API_MSG_SEND,
00065   API_MSG_RECV,
00066   API_MSG_WRITE,
00067 
00068   API_MSG_CLOSE,
00069   
00070   API_MSG_MAX
00071 };


Function Documentation

void api_msg_input struct api_msg msg  ) 
 

Definition at line 644 of file api_msg.c.

References decode, api_msg::msg, and api_msg::type.

Referenced by tcpip_thread().

00645 {  
00646   decode[msg->type](&(msg->msg));
00647 }

void api_msg_post struct api_msg msg  ) 
 

Definition at line 650 of file api_msg.c.

References tcpip_apimsg().

Referenced by netconn_bind(), netconn_close(), netconn_connect(), netconn_delete(), netconn_disconnect(), netconn_listen(), netconn_recv(), netconn_send(), and netconn_write().

00651 {
00652   tcpip_apimsg(msg);
00653 }

Here is the call graph for this function:


Generated on Wed Jan 14 12:58:59 2004 for RTL-lwIP-0.4 by doxygen 1.3.4