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

Function next_proto

socket_info.h:187–193  ·  view source on GitHub ↗

! \brief helper function: * \return next protocol, if the last one is reached return 0 * \note useful for cycling on the supported protocols */

Source from the content-addressed store, hash-verified

185 * \return next protocol, if the last one is reached return 0
186 * \note useful for cycling on the supported protocols */
187static inline int next_proto(unsigned short proto)
188{
189 for( proto++ ; proto<PROTO_LAST ; proto++ )
190 if (protos[proto].id!=PROTO_NONE)
191 return proto;
192 return PROTO_NONE;
193}
194
195
196

Callers 2

grep_sock_info_extFunction · 0.85
find_siFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected