lwIP
2.1.0
Lightweight IP stack
|
Modules | |
TLS layer | |
Data Structures | |
struct | altcp_allocator_s |
Macros | |
#define | altcp_listen(conn) altcp_listen_with_backlog_and_err(conn, TCP_DEFAULT_LISTEN_BACKLOG, NULL) |
Typedefs | |
typedef struct altcp_allocator_s | altcp_allocator_t |
Functions | |
struct altcp_pcb * | altcp_new_ip6 (altcp_allocator_t *allocator) |
struct altcp_pcb * | altcp_new (altcp_allocator_t *allocator) |
struct altcp_pcb * | altcp_new_ip_type (altcp_allocator_t *allocator, u8_t ip_type) |
void | altcp_arg (struct altcp_pcb *conn, void *arg) |
void | altcp_accept (struct altcp_pcb *conn, altcp_accept_fn accept) |
void | altcp_recv (struct altcp_pcb *conn, altcp_recv_fn recv) |
void | altcp_sent (struct altcp_pcb *conn, altcp_sent_fn sent) |
void | altcp_poll (struct altcp_pcb *conn, altcp_poll_fn poll, u8_t interval) |
void | altcp_err (struct altcp_pcb *conn, altcp_err_fn err) |
void | altcp_recved (struct altcp_pcb *conn, u16_t len) |
err_t | altcp_bind (struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port) |
err_t | altcp_connect (struct altcp_pcb *conn, const ip_addr_t *ipaddr, u16_t port, altcp_connected_fn connected) |
struct altcp_pcb * | altcp_listen_with_backlog_and_err (struct altcp_pcb *conn, u8_t backlog, err_t *err) |
void | altcp_abort (struct altcp_pcb *conn) |
err_t | altcp_close (struct altcp_pcb *conn) |
err_t | altcp_shutdown (struct altcp_pcb *conn, int shut_rx, int shut_tx) |
err_t | altcp_write (struct altcp_pcb *conn, const void *dataptr, u16_t len, u8_t apiflags) |
err_t | altcp_output (struct altcp_pcb *conn) |
u16_t | altcp_mss (struct altcp_pcb *conn) |
u16_t | altcp_sndbuf (struct altcp_pcb *conn) |
u16_t | altcp_sndqueuelen (struct altcp_pcb *conn) |
void | altcp_setprio (struct altcp_pcb *conn, u8_t prio) |
This file contains the common functions for altcp to work. For more details see Application layered TCP Introduction.
#define altcp_listen | ( | conn | ) | altcp_listen_with_backlog_and_err(conn, TCP_DEFAULT_LISTEN_BACKLOG, NULL) |
typedef struct altcp_allocator_s altcp_allocator_t |
void altcp_abort | ( | struct altcp_pcb * | conn | ) |
void altcp_accept | ( | struct altcp_pcb * | conn, |
altcp_accept_fn | accept | ||
) |
void altcp_arg | ( | struct altcp_pcb * | conn, |
void * | arg | ||
) |
err_t altcp_close | ( | struct altcp_pcb * | conn | ) |
err_t altcp_connect | ( | struct altcp_pcb * | conn, |
const ip_addr_t * | ipaddr, | ||
u16_t | port, | ||
altcp_connected_fn | connected | ||
) |
void altcp_err | ( | struct altcp_pcb * | conn, |
altcp_err_fn | err | ||
) |
struct altcp_pcb* altcp_listen_with_backlog_and_err | ( | struct altcp_pcb * | conn, |
u8_t | backlog, | ||
err_t * | err | ||
) |
u16_t altcp_mss | ( | struct altcp_pcb * | conn | ) |
struct altcp_pcb* altcp_new | ( | altcp_allocator_t * | allocator | ) |
altcp_new: altcp_new for IPv4
struct altcp_pcb* altcp_new_ip6 | ( | altcp_allocator_t * | allocator | ) |
altcp_new_ip6: altcp_new for IPv6
struct altcp_pcb* altcp_new_ip_type | ( | altcp_allocator_t * | allocator, |
u8_t | ip_type | ||
) |
altcp_new_ip_type: called by applications to allocate a new pcb with the help of an allocator function.
allocator | allocator function and argument |
ip_type | IP version of the pcb (lwip_ip_addr_type) |
err_t altcp_output | ( | struct altcp_pcb * | conn | ) |
void altcp_poll | ( | struct altcp_pcb * | conn, |
altcp_poll_fn | poll, | ||
u8_t | interval | ||
) |
void altcp_recv | ( | struct altcp_pcb * | conn, |
altcp_recv_fn | recv | ||
) |
void altcp_recved | ( | struct altcp_pcb * | conn, |
u16_t | len | ||
) |
void altcp_sent | ( | struct altcp_pcb * | conn, |
altcp_sent_fn | sent | ||
) |
void altcp_setprio | ( | struct altcp_pcb * | conn, |
u8_t | prio | ||
) |
err_t altcp_shutdown | ( | struct altcp_pcb * | conn, |
int | shut_rx, | ||
int | shut_tx | ||
) |
u16_t altcp_sndbuf | ( | struct altcp_pcb * | conn | ) |
u16_t altcp_sndqueuelen | ( | struct altcp_pcb * | conn | ) |
err_t altcp_write | ( | struct altcp_pcb * | conn, |
const void * | dataptr, | ||
u16_t | len, | ||
u8_t | apiflags | ||
) |