Resolves a host name to a list of socket addresses (like getaddrinfo()).
- Parameters:
-
| p_this | a VLC object |
| node | host name to resolve (encoded as UTF-8), or NULL |
| i_port | port number for the socket addresses |
| p_hints | parameters (see getaddrinfo() manual page) |
| res | pointer set to the resulting chained list. |
- Returns:
- 0 on success, a getaddrinfo() error otherwise. On failure, *res is undefined. On success, it must be freed with freeaddrinfo().
References AI_NUMERICSERV, EAI_BADFLAGS, LocaleFree(), msg_Err, and ToLocale().
Referenced by ACL_Resolve(), net_Connect(), net_ConnectDgram(), net_Listen(), net_ListenSingle(), net_OpenDgram(), SocksHandshakeTCP(), and sout_AnnounceRegisterSDP().