#include "lwip/opt.h"
#include "lwip/api_msg.h"
#include "lwip/ip.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include "lwip/raw.h"
#include "lwip/memp.h"
#include "lwip/tcpip.h"
#include "lwip/igmp.h"
#include "lwip/dns.h"
#include <string.h>
Go to the source code of this file.
Detailed Description
Sequential API Internal module
Definition in file api_msg.c.
Function Documentation
Bind a pcb contained in a netconn Called from netconn_bind.
- Parameters:
-
| msg | the api_msg_msg pointing to the connection and containing the IP address and port to bind to |
Definition at line 719 of file api_msg.c.
Close a TCP pcb contained in a netconn Called from netconn_close
- Parameters:
-
Definition at line 1152 of file api_msg.c.
Connect a pcb contained inside a netconn Called from netconn_connect.
- Parameters:
-
| msg | the api_msg_msg pointing to the connection and containing the IP address and port to connect to |
Definition at line 788 of file api_msg.c.
Delete the pcb inside a netconn. Called from netconn_delete.
- Parameters:
-
Definition at line 672 of file api_msg.c.
Connect a pcb contained inside a netconn Only used for UDP netconns. Called from netconn_disconnect.
- Parameters:
-
| msg | the api_msg_msg pointing to the connection to disconnect |
Definition at line 833 of file api_msg.c.
Return a connection's local or remote address Called from netconn_getaddr
- Parameters:
-
Definition at line 1104 of file api_msg.c.
Set a TCP pcb contained in a netconn into listen mode Called from netconn_listen.
- Parameters:
-
Definition at line 850 of file api_msg.c.
Create a new pcb of a specific type inside a netconn. Called from netconn_new_with_proto_and_callback.
- Parameters:
-
Definition at line 470 of file api_msg.c.
Indicate data has been received from a TCP pcb contained in a netconn Called from netconn_recv
- Parameters:
-
Definition at line 938 of file api_msg.c.
Send some data on a RAW or UDP pcb contained in a netconn Called from netconn_send
- Parameters:
-
Definition at line 900 of file api_msg.c.
Send some data on a TCP pcb contained in a netconn Called from netconn_write
- Parameters:
-
Definition at line 1062 of file api_msg.c.
struct netconn* netconn_alloc |
( |
enum netconn_type |
t, |
|
|
netconn_callback |
callback | |
|
) |
| | [read] |
Create a new netconn (of a specific type) that has a callback function. The corresponding pcb is NOT created!
- Parameters:
-
| t | the type of 'connection' to create ( |
- See also:
- enum netconn_type)
- Parameters:
-
| proto | the IP protocol for RAW IP pcbs |
| callback | a function to call on status changes (RX available, TX'ed) |
- Returns:
- a newly allocated struct netconn or NULL on memory error
Definition at line 493 of file api_msg.c.
void netconn_free |
( |
struct netconn * |
conn |
) |
|
Delete a netconn and all its resources. The pcb is NOT freed (since we might not be in the right thread context do this).
- Parameters:
-
Definition at line 572 of file api_msg.c.