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

Function connWrite

src/connection.h:146–148  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

144 * connGetState() to see if the connection state is still CONN_STATE_CONNECTED.
145 */
146static 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 *

Callers 12

clusterWriteHandlerFunction · 0.85
sendBulkToSlaveFunction · 0.85
rdbPipeWriteHandlerFunction · 0.85
rdbPipeReadHandlerFunction · 0.85
replicationCronFunction · 0.85
clientAcceptHandlerFunction · 0.85
acceptCommonHandlerFunction · 0.85
writeToClientFunction · 0.85
ldbSendLogsFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected