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

Function connTLSSetWriteHandler

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

Source from the content-addressed store, hash-verified

812}
813
814int connTLSSetWriteHandler(connection *conn, ConnectionCallbackFunc func, int barrier) {
815 conn->write_handler = func;
816 if (barrier)
817 conn->flags |= CONN_FLAG_WRITE_BARRIER;
818 else
819 conn->flags &= ~CONN_FLAG_WRITE_BARRIER;
820 updateSSLEvent((tls_connection *) conn);
821 return C_OK;
822}
823
824int connTLSSetReadHandler(connection *conn, ConnectionCallbackFunc func) {
825 conn->read_handler = func;

Callers

nothing calls this directly

Calls 1

updateSSLEventFunction · 0.85

Tested by

no test coverage detected