SAMV71 Xplained Ultra Software Package 1.3

api_msg.c File Reference

#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.

Functions

void do_newconn (struct api_msg_msg *msg)
struct netconnnetconn_alloc (enum netconn_type t, netconn_callback callback)
void netconn_free (struct netconn *conn)
void do_delconn (struct api_msg_msg *msg)
void do_bind (struct api_msg_msg *msg)
void do_connect (struct api_msg_msg *msg)
void do_disconnect (struct api_msg_msg *msg)
void do_listen (struct api_msg_msg *msg)
void do_send (struct api_msg_msg *msg)
void do_recv (struct api_msg_msg *msg)
void do_write (struct api_msg_msg *msg)
void do_getaddr (struct api_msg_msg *msg)
void do_close (struct api_msg_msg *msg)

Detailed Description

Sequential API Internal module

Definition in file api_msg.c.


Function Documentation

void do_bind ( struct api_msg_msg msg  ) 

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.

Here is the call graph for this function:

void do_close ( struct api_msg_msg msg  ) 

Close a TCP pcb contained in a netconn Called from netconn_close

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 1152 of file api_msg.c.

void do_connect ( struct api_msg_msg msg  ) 

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.

Here is the call graph for this function:

void do_delconn ( struct api_msg_msg msg  ) 

Delete the pcb inside a netconn. Called from netconn_delete.

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 672 of file api_msg.c.

Here is the call graph for this function:

void do_disconnect ( struct api_msg_msg msg  ) 

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.

Here is the call graph for this function:

void do_getaddr ( struct api_msg_msg msg  ) 

Return a connection's local or remote address Called from netconn_getaddr

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 1104 of file api_msg.c.

void do_listen ( struct api_msg_msg msg  ) 

Set a TCP pcb contained in a netconn into listen mode Called from netconn_listen.

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 850 of file api_msg.c.

Here is the call graph for this function:

void do_newconn ( struct api_msg_msg msg  ) 

Create a new pcb of a specific type inside a netconn. Called from netconn_new_with_proto_and_callback.

Parameters:
msg the api_msg_msg describing the connection type

Definition at line 470 of file api_msg.c.

void do_recv ( struct api_msg_msg msg  ) 

Indicate data has been received from a TCP pcb contained in a netconn Called from netconn_recv

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 938 of file api_msg.c.

Here is the call graph for this function:

void do_send ( struct api_msg_msg msg  ) 

Send some data on a RAW or UDP pcb contained in a netconn Called from netconn_send

Parameters:
msg the api_msg_msg pointing to the connection

Definition at line 900 of file api_msg.c.

Here is the call graph for this function:

void do_write ( struct api_msg_msg msg  ) 

Send some data on a TCP pcb contained in a netconn Called from netconn_write

Parameters:
msg the api_msg_msg pointing to the connection

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.

Here is the call graph for this function:

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:
conn the netconn to free

Definition at line 572 of file api_msg.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines