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

Function get_first_socket

socket_info.h:200–209  ·  view source on GitHub ↗

! \brief gets first non-null socket_info structure * (useful if for. e.g we are not listening on any udp sockets ) */

Source from the content-addressed store, hash-verified

198 * (useful if for. e.g we are not listening on any udp sockets )
199 */
200inline static const struct socket_info* get_first_socket(void)
201{
202 int p;
203
204 for( p=0 ; p<PROTO_LAST ; p++ )
205 if (protos[p].listeners)
206 return &protos[p].listeners->socket_info;
207
208 return NULL;
209}
210
211
212/*! \brief Sets protocol

Callers 3

init_tagsFunction · 0.85
child_init_callidFunction · 0.85
uac_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected