Connects a socket to a remote address.
Synopsis
Declared in <folly/net/NetOps.h>
int
connect(
NetworkSocket s,
sockaddr const* name,
socklen_t namelen);
Return Value
0 on success, or ‐1 on error.
Parameters
Name |
Description |
s |
The socket to connect. |
name |
The remote address to connect to. |
namelen |
The length of the address. |
Created with MrDocs