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
| Return | Name | Description |
|---|---|---|
ConnectReq inline | Construct and set req.data to this. | |
auto | connect inline | Initiate a TCP connection to addr on handle. |
auto | connect inline | Initiate 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
handleInitializeduv_tcp_tto connect.addrTarget address (IPv4 or IPv6sockaddr).
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
handleInitializeduv_pipe_tto connect.nameFilesystem path (Unix) or named-pipe name (Windows).
Returns
true if the connect request was submitted successfully.
