MCPcopy Create free account
hub / github.com/F-Stack/f-stack / connConnect

Function connConnect

app/redis-6.2.6/src/connection.h:117–120  ·  view source on GitHub ↗

Establish a connection. The connect_handler will be called when the connection * is established, or if an error has occurred. * * The connection handler will be responsible to set up any read/write handlers * as needed. * * If C_ERR is returned, the operation failed and the connection handler shall * not be expected. */

Source from the content-addressed store, hash-verified

115 * not be expected.
116 */
117static inline int connConnect(connection *conn, const char *addr, int port, const char *src_addr,
118 ConnectionCallbackFunc connect_handler) {
119 return conn->type->connect(conn, addr, port, src_addr, connect_handler);
120}
121
122/* Blocking connect.
123 *

Callers 2

connectWithMasterFunction · 0.85
clusterCronFunction · 0.85

Calls 1

connectMethod · 0.80

Tested by

no test coverage detected