MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / rio_socks_init

Function rio_socks_init

modules/rtp.io/rtp_io.c:120–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120static int
121rio_socks_init(int nsocks)
122{
123 size_t asize;
124 struct rtp_io_socks *socks;
125
126 LM_DBG("allocating %s(%d)\n", exports.name, nsocks);
127
128 asize = sizeof(struct rtp_io_socks) + (nsocks * sizeof(int) * 2);
129 socks = malloc(asize);
130 if (socks == NULL)
131 goto e0;
132
133 memset(socks, '\0', asize);
134 rpi_descp->socks = socks;
135 return 0;
136e0:
137 return -1;
138}
139
140static int mod_init(void)
141{

Callers 1

mod_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected