src/webui/webui.h File Reference

Functions

con_upstream_action_e wi_read (con_connection_s *connection)
 Called when it's time to read data from the connection.
bool wi_accept (con_connection_s *connection)
 Called when a client is accepted by the connection module.
void wi_close (con_connection_s *connection, con_close_reason_e reason)
 Called when a connection is closed.

Function Documentation

bool wi_accept ( con_connection_s connection  ) 

Called when a client is accepted by the connection module.

Parameters:
connection The connection that was accepted.
Returns:
true if we're happy. false if we want the connection to be closed.
void wi_close ( con_connection_s connection,
con_close_reason_e  reason 
)

Called when a connection is closed.

Either by us, or the other end.

Parameters:
connection The connection to close, valid to read or write from.
reason The reason for the close.
con_upstream_action_e wi_read ( con_connection_s connection  ) 

Called when it's time to read data from the connection.

Parameters:
connection The connection with data on it.
Returns:
CON_UPSTREAM_CLOSE if the connection should be closed.

Generated by  doxygen 1.6.2