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

Function connTLSConnect

app/redis-6.2.6/src/tls.c:731–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731static int connTLSConnect(connection *conn_, const char *addr, int port, const char *src_addr, ConnectionCallbackFunc connect_handler) {
732 tls_connection *conn = (tls_connection *) conn_;
733
734 if (conn->c.state != CONN_STATE_NONE) return C_ERR;
735 ERR_clear_error();
736
737 /* Initiate Socket connection first */
738 if (CT_Socket.connect(conn_, addr, port, src_addr, connect_handler) == C_ERR) return C_ERR;
739
740 /* Return now, once the socket is connected we'll initiate
741 * TLS connection from the event handler.
742 */
743 return C_OK;
744}
745
746static int connTLSWrite(connection *conn_, const void *data, size_t data_len) {
747 tls_connection *conn = (tls_connection *) conn_;

Callers

nothing calls this directly

Calls 1

connectMethod · 0.80

Tested by

no test coverage detected