UV module
ConnectReq
Asynchronous connection request for TCP sockets and named pipes.
ConnectReq
#include <icy/request.h>struct ConnectReqDefined in src/base/include/icy/request.h:149
Inherits:
Request< uv_connect_t >
Asynchronous connection request for TCP sockets and named pipes.
List of all members
| Name | Kind | Owner |
|---|---|---|
ConnectReq | function | Declared here |
connect | function | Declared here |
connect | function | Declared here |
req | variable | Inherited from Request |
callback | variable | Inherited from Request |
Request | function | Inherited from Request |
invoke | function | Inherited from Request |
invoke | function | Inherited from Request |
defaultCallback | function | Inherited from Request |
Type | typedef | Inherited from Request |
Event | typedef | Inherited from Request |
Inherited from Request
| Kind | Name | Description |
|---|---|---|
variable | req | The underlying libuv request object. |
variable | callback | Called when the request completes. |
function | Request inline | Construct the request and set req.data to this so callbacks can recover the wrapper pointer. |
function | invoke inline -> std::enable_if_t<!std::is_void< std::invoke_result_t< F, Args... > >::value, int > | Call f with args. If f returns a non-zero libuv error code, the callback is invoked immediately with that status. |
function | invoke inline -> std::enable_if_t< std::is_void< std::invoke_result_t< F, Args... > >::value > | Call f with args. Overload for void-returning functions; no error checking is performed. |
function | defaultCallback static inline | Standard libuv completion callback. Invokes callback with the status event and then deletes the [Request](icy-uv-Request.html#request-2) wrapper. |
typedef | Type | |
typedef | Event |
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()Defined in src/base/include/icy/request.h:152
Construct and set req.data to this.
connect
inline
inline auto connect(uv_tcp_t * handle, const struct sockaddr * addr)Defined in src/base/include/icy/request.h:162
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)Defined in src/base/include/icy/request.h:172
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.
