! \brief gets first non-null socket_info structure * (useful if for. e.g we are not listening on any udp sockets ) */
| 198 | * (useful if for. e.g we are not listening on any udp sockets ) |
| 199 | */ |
| 200 | inline 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 |
no outgoing calls
no test coverage detected