Register a read handler, to be called when the connection is readable. * If NULL, the existing handler is removed. */
| 170 | * If NULL, the existing handler is removed. |
| 171 | */ |
| 172 | static 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. |
no outgoing calls
no test coverage detected