40#ifndef LWIP_HDR_ALTCP_H
41#define LWIP_HDR_ALTCP_H
57struct altcp_functions;
69 const struct altcp_functions *fns;
85typedef struct altcp_allocator_s {
109#define altcp_listen_with_backlog(conn, backlog) altcp_listen_with_backlog_and_err(conn, backlog, NULL)
111#define altcp_listen(conn) altcp_listen_with_backlog_and_err(conn, TCP_DEFAULT_LISTEN_BACKLOG, NULL)
133#if LWIP_TCP_KEEPALIVE
134void altcp_keepalive_disable(
struct altcp_pcb *conn);
139enum tcp_state altcp_dbg_get_tcp_state(
struct altcp_pcb *conn);
152#define altcp_accept_fn tcp_accept_fn
153#define altcp_connected_fn tcp_connected_fn
154#define altcp_recv_fn tcp_recv_fn
155#define altcp_sent_fn tcp_sent_fn
156#define altcp_poll_fn tcp_poll_fn
157#define altcp_err_fn tcp_err_fn
159#define altcp_pcb tcp_pcb
160#define altcp_tcp_new_ip_type tcp_new_ip_type
161#define altcp_tcp_new tcp_new
162#define altcp_tcp_new_ip6 tcp_new_ip6
164#define altcp_new(allocator) tcp_new()
165#define altcp_new_ip6(allocator) tcp_new_ip6()
166#define altcp_new_ip_type(allocator, ip_type) tcp_new_ip_type(ip_type)
168#define altcp_arg tcp_arg
169#define altcp_accept tcp_accept
170#define altcp_recv tcp_recv
171#define altcp_sent tcp_sent
172#define altcp_poll tcp_poll
173#define altcp_err tcp_err
175#define altcp_recved tcp_recved
176#define altcp_bind tcp_bind
177#define altcp_connect tcp_connect
179#define altcp_listen_with_backlog_and_err tcp_listen_with_backlog_and_err
180#define altcp_listen_with_backlog tcp_listen_with_backlog
181#define altcp_listen tcp_listen
183#define altcp_abort tcp_abort
184#define altcp_close tcp_close
185#define altcp_shutdown tcp_shutdown
187#define altcp_write tcp_write
188#define altcp_output tcp_output
190#define altcp_mss tcp_mss
191#define altcp_sndbuf tcp_sndbuf
192#define altcp_sndqueuelen tcp_sndqueuelen
193#define altcp_nagle_disable tcp_nagle_disable
194#define altcp_nagle_enable tcp_nagle_enable
195#define altcp_nagle_disabled tcp_nagle_disabled
196#define altcp_setprio tcp_setprio
198#define altcp_get_tcp_addrinfo tcp_get_tcp_addrinfo
199#define altcp_get_ip(pcb, local) ((local) ? (&(pcb)->local_ip) : (&(pcb)->remote_ip))
202#define altcp_dbg_get_tcp_state tcp_dbg_get_tcp_state
#define altcp_new_ip_type(allocator, ip_type)
#define altcp_get_ip(pcb, local)
#define altcp_sndqueuelen
#define altcp_nagle_enable
#define altcp_listen_with_backlog_and_err
#define altcp_nagle_disabled
#define altcp_nagle_disable
#define altcp_get_tcp_addrinfo
#define altcp_connected_fn
#define altcp_new(allocator)
#define altcp_new_ip6(allocator)
void idle(int argc, const char *argv[])
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)
GLuint GLuint GLsizei count
GLenum const GLvoid * addr
int const JOCTET * dataptr
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)