Parse a service name or numeric port string (deprecated; prefer modern address APIs).
Declared in <openssl/bio.h>
[[deprecated]]
int
BIO_get_port(
char const* str,
unsigned short* port_ptr);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on error.
| Name | Description |
|---|---|
| str | Port string such as "443" or a service name. |
| port_ptr | Receives the network-byte-order port number on success. |