Write to connection, behaves the same as write(2). * * Like write(2), a short write is possible. A -1 return indicates an error. * * The caller should NOT rely on errno. Testing for an EAGAIN-like condition, use * connGetState() to see if the connection state is still CONN_STATE_CONNECTED. */
| 144 | * connGetState() to see if the connection state is still CONN_STATE_CONNECTED. |
| 145 | */ |
| 146 | static inline int connWrite(connection *conn, const void *data, size_t data_len) { |
| 147 | return conn->type->write(conn, data, data_len); |
| 148 | } |
| 149 | |
| 150 | /* Read from the connection, behaves the same as read(2). |
| 151 | * |
no test coverage detected