Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
lwip_altcp_proxyconnect.c File Reference
Application layered TCP connection API that executes a proxy-connect. More...
Go to the source code of this file.
Functions | |
| static err_t | altcp_proxyconnect_lower_connected (void *arg, struct altcp_pcb *inner_conn, err_t err) |
| Connected callback from lower connection (i.e. | |
| static err_t | altcp_proxyconnect_lower_recv (void *arg, struct altcp_pcb *inner_conn, struct pbuf *p, err_t err) |
| Recv callback from lower connection (i.e. | |
| static err_t | altcp_proxyconnect_lower_sent (void *arg, struct altcp_pcb *inner_conn, u16_t len) |
| Sent callback from lower connection (i.e. | |
| static err_t | altcp_proxyconnect_lower_poll (void *arg, struct altcp_pcb *inner_conn) |
| Poll callback from lower connection (i.e. | |
| struct altcp_pcb * | altcp_proxyconnect_new (struct altcp_proxyconnect_config *config, struct altcp_pcb *inner_pcb) |
| Allocate a new altcp layer connecting through a proxy. | |
| struct altcp_pcb * | altcp_proxyconnect_new_tcp (struct altcp_proxyconnect_config *config, u8_t ip_type) |
| Allocate a new altcp layer connecting through a proxy. | |
| struct altcp_pcb * | altcp_proxyconnect_alloc (void *arg, u8_t ip_type) |
| Allocator function to allocate a proxy connect altcp pcb connecting directly via tcp to the proxy. | |
| struct altcp_pcb * | altcp_proxyconnect_tls_alloc (void *arg, u8_t ip_type) |
| Allocator function to allocate a TLS connection through a proxy. | |
Detailed Description
Application layered TCP connection API that executes a proxy-connect.
This file provides a starting layer that executes a proxy-connect e.g. to set up TLS connections through a http proxy.
Definition in file lwip_altcp_proxyconnect.c.
Function Documentation
| struct altcp_pcb* altcp_proxyconnect_alloc | ( | void * | arg, |
| u8_t | ip_type | ||
| ) | [read] |
Allocator function to allocate a proxy connect altcp pcb connecting directly via tcp to the proxy.
The returned pcb is a chain: altcp_proxyconnect - altcp_tcp - tcp pcb
This function is meant for use with altcp_new.
- Parameters:
-
arg struct altcp_proxyconnect_config that contains the proxy settings ip_type IP type of the connection (lwip_ip_addr_type)
Definition at line 397 of file lwip_altcp_proxyconnect.c.
| static err_t altcp_proxyconnect_lower_connected | ( | void * | arg, |
| struct altcp_pcb * | inner_conn, | ||
| err_t | err | ||
| ) | [static] |
Connected callback from lower connection (i.e.
TCP). Not really implemented/tested yet...
Definition at line 161 of file lwip_altcp_proxyconnect.c.
| static err_t altcp_proxyconnect_lower_poll | ( | void * | arg, |
| struct altcp_pcb * | inner_conn | ||
| ) | [static] |
Poll callback from lower connection (i.e.
TCP) Just pass this on to the application.
Definition at line 276 of file lwip_altcp_proxyconnect.c.
| static err_t altcp_proxyconnect_lower_recv | ( | void * | arg, |
| struct altcp_pcb * | inner_conn, | ||
| struct pbuf * | p, | ||
| err_t | err | ||
| ) | [static] |
Recv callback from lower connection (i.e.
TCP) This one mainly differs between connection setup (wait for proxy OK string) and application phase (data is passed on to the application).
Definition at line 187 of file lwip_altcp_proxyconnect.c.
| static err_t altcp_proxyconnect_lower_sent | ( | void * | arg, |
| struct altcp_pcb * | inner_conn, | ||
| u16_t | len | ||
| ) | [static] |
Sent callback from lower connection (i.e.
TCP) This only informs the upper layer to try to send more, not about the number of ACKed bytes.
Definition at line 251 of file lwip_altcp_proxyconnect.c.
| struct altcp_pcb* altcp_proxyconnect_new | ( | struct altcp_proxyconnect_config * | config, |
| struct altcp_pcb * | inner_pcb | ||
| ) | [read] |
Allocate a new altcp layer connecting through a proxy.
This function gets the inner pcb passed.
- Parameters:
-
config struct altcp_proxyconnect_config that contains the proxy settings inner_pcb pcb that makes the connection to the proxy (i.e. tcp pcb)
Definition at line 346 of file lwip_altcp_proxyconnect.c.
| struct altcp_pcb* altcp_proxyconnect_new_tcp | ( | struct altcp_proxyconnect_config * | config, |
| u8_t | ip_type | ||
| ) | [read] |
Allocate a new altcp layer connecting through a proxy.
This function allocates the inner pcb as tcp pcb, resulting in a direct tcp connection to the proxy.
- Parameters:
-
config struct altcp_proxyconnect_config that contains the proxy settings ip_type IP type of the connection (lwip_ip_addr_type)
Definition at line 370 of file lwip_altcp_proxyconnect.c.
| struct altcp_pcb* altcp_proxyconnect_tls_alloc | ( | void * | arg, |
| u8_t | ip_type | ||
| ) | [read] |
Allocator function to allocate a TLS connection through a proxy.
The returned pcb is a chain: altcp_tls - altcp_proxyconnect - altcp_tcp - tcp pcb
This function is meant for use with altcp_new.
- Parameters:
-
arg struct altcp_proxyconnect_tls_config that contains the proxy settings and tls settings ip_type IP type of the connection (lwip_ip_addr_type)
Definition at line 416 of file lwip_altcp_proxyconnect.c.
Generated on Tue Jul 12 2022 13:55:13 by
1.7.2