MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / connSetReadHandler

Function connSetReadHandler

src/connection.h:172–174  ·  view source on GitHub ↗

Register a read handler, to be called when the connection is readable. * If NULL, the existing handler is removed. */

Source from the content-addressed store, hash-verified

170 * If NULL, the existing handler is removed.
171 */
172static inline int connSetReadHandler(connection *conn, ConnectionCallbackFunc func, bool fThreadSafe = false) {
173 return conn->type->set_read_handler(conn, func, fThreadSafe);
174}
175
176/* Set a write handler, and possibly enable a write barrier, this flag is
177 * cleared when write handler is changed or removed.

Callers 10

clusterConnAcceptHandlerFunction · 0.85
readSyncBulkPayloadRdbFunction · 0.85
syncWithMasterFunction · 0.85
createClientFunction · 0.85
protectClientFunction · 0.85
unprotectClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected