[#BIO_get_host_ip] = BIO_get_host_ip :mrdocs: Resolve a hostname to four IPv4 octets (deprecated; prefer BIO_lookup()). == Synopsis Declared in `<openssl/bio.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int BIO_get_host_ip( char const* str, unsigned char* ip); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on error. == Parameters [cols="1,4"] |=== | Name| Description | *str* | Hostname to resolve. | *ip* | Receives four bytes of IPv4 address on success. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#