TAS
TCP Acceleration as an OS Service
|
Application Interface.This is implemented in appif.c and appif_ctx.c. More...
![]() |
Functions | |
int | appif_init (void) |
unsigned | appif_poll (void) |
void | appif_conn_opened (struct connection *c, int status) |
void | appif_conn_closed (struct connection *c, int status) |
void | appif_listen_newconn (struct listener *l, uint32_t remote_ip, uint16_t remote_port) |
void | appif_accept_conn (struct connection *c, int status) |
Application Interface.
This is implemented in appif.c and appif_ctx.c.
void appif_accept_conn | ( | struct connection * | c, |
int | status | ||
) |
Callback from tcp_accept(): Connection accepted.
c | Connection passed to tcp_accept |
status | Status: 0 if successful |
Definition at line 173 of file appif_ctx.c.
References connection::app_next, connection::ctx, connection::flow_id, connection::fn_core, configuration::ip, connection::local_seq, connection::opaque, connection::remote_ip, connection::remote_port, connection::remote_seq, connection::rx_buf, connection::rx_len, tcp_destroy(), connection::tx_buf, and connection::tx_len.
Referenced by tcp_timeout().
void appif_conn_closed | ( | struct connection * | c, |
int | status | ||
) |
Callback from tcp_close(): Connection close done.
c | Connection |
status | Status: 0 if successful |
Definition at line 100 of file appif_ctx.c.
References connection::ctx, and connection::opaque.
Referenced by tcp_timeout().
void appif_conn_opened | ( | struct connection * | c, |
int | status | ||
) |
Callback from tcp_open(): Connection open done.
c | Connection |
status | Status: 0 if successful |
Definition at line 57 of file appif_ctx.c.
References connection::ctx, connection::flow_id, connection::fn_core, configuration::ip, connection::local_port, connection::local_seq, connection::opaque, connection::remote_seq, connection::rx_buf, connection::rx_len, tcp_destroy(), connection::tx_buf, and connection::tx_len.
Referenced by tcp_timeout().
void appif_listen_newconn | ( | struct listener * | l, |
uint32_t | remote_ip, | ||
uint16_t | remote_port | ||
) |
Callback from TCP module: New connection request received on listener.
l | Listener that received new connection |
remote_ip | Remote IP address |
remote_port | Remote port |
Definition at line 143 of file appif_ctx.c.
References listener::ctx, and listener::opaque.
Referenced by tcp_timeout().
unsigned appif_poll | ( | void | ) |
Poll application in memory queues
Definition at line 130 of file appif.c.
References applications, flexnic_info::cores_num, nicif_appctx_add(), and ux_to_poll.