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

Function connSetWriteHandler

src/connection.h:165–167  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

163 * If NULL, the existing handler is removed.
164 */
165static inline int connSetWriteHandler(connection *conn, ConnectionCallbackFunc func, bool fThreadSafe = false) {
166 return conn->type->set_write_handler(conn, func, 0, fThreadSafe);
167}
168
169/* Register a read handler, to be called when the connection is readable.
170 * If NULL, the existing handler is removed.

Callers 10

clusterWriteHandlerFunction · 0.85
putSlaveOnlineFunction · 0.85
sendBulkToSlaveFunction · 0.85
rdbPipeReadHandlerFunction · 0.85
syncWithMasterFunction · 0.85
writeToClientFunction · 0.85
protectClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected