Register a read handler, to be called when the connection is readable. * If NULL, the existing handler is removed. */
| 163 | * If NULL, the existing handler is removed. |
| 164 | */ |
| 165 | static inline int connSetReadHandler(connection *conn, ConnectionCallbackFunc func) { |
| 166 | return conn->type->set_read_handler(conn, func); |
| 167 | } |
| 168 | |
| 169 | /* Set a write handler, and possibly enable a write barrier, this flag is |
| 170 | * cleared when write handler is changed or removed. |
no outgoing calls
no test coverage detected