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. */
| 115 | * not be expected. |
| 116 | */ |
| 117 | static 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 | * |
no test coverage detected