Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

altcp_tcp.h File Reference

altcp_tcp.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_tcp_alloc (void *arg, u8_t ip_type)
 altcp_tcp allocator function fitting to altcp_allocator_t / altcp_new.

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

This file contains the base implementation calling into tcp.

Definition in file altcp_tcp.h.


Function Documentation

struct altcp_pcb* altcp_tcp_alloc ( void *  arg,
u8_t  ip_type 
) [read]

altcp_tcp allocator function fitting to altcp_allocator_t / altcp_new.

arg pointer is not used for TCP.

Definition at line 212 of file lwip_altcp_tcp.c.