int myqtt_support_pipe ( MyQttCtx ctx,
int  descf[2] 
)

Creates a portable pipe (by creating a socket connected pair).

Parameters
descfThe pointer to the buffer where descriptors will be stored.
ctxThe context where the operation will take place.
Returns
The function returns -1 in the case of failure or 0 if pipe was properly created.

References myqtt_conn_set_sock_block(), myqtt_conn_set_sock_tcp_nodelay(), and myqtt_listener_accept().

Referenced by myqttd_conn_mgr_setup_proxy_on_parent().