Functions
ValvulaConnection: API to handle a single connection received on Valvula server or the process using libValvula

Functions

void valvula_connection_close (ValvulaConnection *connection)
 Allows to close the provided connection. More...
 
ValvulaCtxvalvula_connection_get_ctx (ValvulaConnection *connection)
 Allows to get the context under which the connection was created. More...
 
const char * valvula_connection_get_host (ValvulaConnection *connection)
 Returns the actual host this connection is connected to. More...
 
const char * valvula_connection_get_host_ip (ValvulaConnection *connection)
 Allows to get the actual host ip this connection is connected to. More...
 
const char * valvula_connection_get_local_addr (ValvulaConnection *connection)
 Allows to get local address used by the connection. More...
 
const char * valvula_connection_get_local_port (ValvulaConnection *connection)
 Allows to get the local port used by the connection. More...
 
const char * valvula_connection_get_port (ValvulaConnection *connection)
 Returns the actual port this connection is connected to. More...
 
ValvulaPeerRole valvula_connection_get_role (ValvulaConnection *connection)
 Allows to get current connection role. More...
 
VALVULA_SOCKET valvula_connection_get_socket (ValvulaConnection *connection)
 Returns the socket used by this ValvulaConnection object. More...
 
axl_bool valvula_connection_is_ok (ValvulaConnection *connection)
 Allows to get current connection status. More...
 
ValvulaConnectionvalvula_connection_new_empty (ValvulaCtx *ctx, VALVULA_SOCKET _socket, ValvulaPeerRole role)
 Allows to create a new working connection with the provided socket, role and context. More...
 
axl_bool valvula_connection_ref_internal (ValvulaConnection *connection, const char *who, axl_bool check_ref)
 private API More...
 
axl_bool valvula_connection_set_blocking_socket (ValvulaConnection *connection)
 Allows to change connection semantic to blocking. More...
 
axl_bool valvula_connection_set_nonblocking_socket (ValvulaConnection *connection)
 Allows to change connection semantic to nonblocking. More...
 
axl_bool valvula_connection_set_sock_block (VALVULA_SOCKET socket, axl_bool enable)
 Allows to enable/disable non-blocking/blocking behavior on the provided socket. More...
 
axl_bool valvula_connection_set_sock_tcp_nodelay (VALVULA_SOCKET socket, axl_bool enable)
 Allows to configure tcp no delay flag (enable/disable Nagle algorithm). More...
 
axl_bool valvula_connection_uncheck_ref (ValvulaConnection *connection)
 Allows to perform a ref count operation on the connection provided without checking if the connection is working (no call to valvula_connection_is_ok). More...
 

Detailed Description