Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

altcp_priv.h File Reference

altcp_priv.h File Reference

Application layered TCP connection API (to be used from TCPIP thread)
This interface mimics the tcp callback API to the application while preventing direct linking (much like virtual functions). More...

Go to the source code of this file.

Functions

struct altcp_pcb * altcp_alloc (void)
 For altcp layer implementations only: allocate a new struct altcp_pcb from the pool and zero the memory.
void altcp_free (struct altcp_pcb *conn)
 For altcp layer implementations only: return a struct altcp_pcb to the pool.

Detailed Description

Application layered TCP connection API (to be used from TCPIP thread)
This interface mimics the tcp callback API to the application while preventing direct linking (much like virtual functions).

This way, an application can make use of other application layer protocols on top of TCP without knowing the details (e.g. TLS, proxy connection).

Definition in file altcp_priv.h.


Function Documentation

struct altcp_pcb* altcp_alloc ( void   ) [read]

For altcp layer implementations only: allocate a new struct altcp_pcb from the pool and zero the memory.

Definition at line 136 of file lwip_altcp.c.

void altcp_free ( struct altcp_pcb *  conn )

For altcp layer implementations only: return a struct altcp_pcb to the pool.

Definition at line 149 of file lwip_altcp.c.