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

Function connCreateSocket

src/connection.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 */
77
78connection *connCreateSocket() {
79 connection *conn = (connection*)zcalloc(sizeof(connection), MALLOC_LOCAL);
80 conn->type = &CT_Socket;
81 conn->fd = -1;
82
83 return conn;
84}
85
86/* Create a new socket-type connection that is already associated with
87 * an accepted connection.

Callers 4

clusterCronFunction · 0.85
migrateGetSocketFunction · 0.85
connCreateAcceptedSocketFunction · 0.85
connectWithMasterFunction · 0.85

Calls 1

zcallocFunction · 0.85

Tested by

no test coverage detected