UV module

ConnectReq

Asynchronous connection request for TCP sockets and named pipes.

ConnectReq

#include <icy/request.h>

Inherits: Request< uv_connect_t >

Asynchronous connection request for TCP sockets and named pipes.

Public Methods

ReturnNameDescription
ConnectReq inlineConstruct and set req.data to this.
autoconnect inlineInitiate a TCP connection to addr on handle.
autoconnect inlineInitiate a named-pipe connection to name on handle.

ConnectReq

inline

inline ConnectReq()

Construct and set req.data to this.


connect

inline

inline auto connect(uv_tcp_t * handle, const struct sockaddr * addr)

Initiate a TCP connection to addr on handle.

Parameters

  • handle Initialized uv_tcp_t to connect.

  • addr Target address (IPv4 or IPv6 sockaddr).

Returns

true if the connect request was submitted successfully.


connect

inline

inline auto connect(uv_pipe_t * handle, const char * name)

Initiate a named-pipe connection to name on handle.

Parameters

  • handle Initialized uv_pipe_t to connect.

  • name Filesystem path (Unix) or named-pipe name (Windows).

Returns

true if the connect request was submitted successfully.