MCPcopy Create free account
hub / github.com/F-Stack/f-stack / connCreateSocket

Function connCreateSocket

app/redis-6.2.6/src/connection.c:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 1

zcallocFunction · 0.70

Tested by

no test coverage detected