TAS
TCP Acceleration as an OS Service
Functions
Tas-sp-appif

Application Interface.This is implemented in appif.c and appif_ctx.c. More...

Collaboration diagram for Tas-sp-appif:

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)
 

Detailed Description

Application Interface.

This is implemented in appif.c and appif_ctx.c.

Function Documentation

◆ appif_accept_conn()

void appif_accept_conn ( struct connection c,
int  status 
)

◆ appif_conn_closed()

void appif_conn_closed ( struct connection c,
int  status 
)

Callback from tcp_close(): Connection close done.

Parameters
cConnection
statusStatus: 0 if successful

Definition at line 100 of file appif_ctx.c.

References connection::ctx, and connection::opaque.

Referenced by tcp_timeout().

◆ appif_conn_opened()

void appif_conn_opened ( struct connection c,
int  status 
)

◆ appif_init()

int appif_init ( void  )

Initialize application interface

Definition at line 100 of file appif.c.

◆ appif_listen_newconn()

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.

Parameters
lListener that received new connection
remote_ipRemote IP address
remote_portRemote port

Definition at line 143 of file appif_ctx.c.

References listener::ctx, and listener::opaque.

Referenced by tcp_timeout().

◆ appif_poll()

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.