TryStrToHostAddr¶
Try to convert a string to an IPV4 address.
Declaration¶
Source position: socketsh.inc line 203
function TryStrToHostAddr(IP: AnsiString; out ip4: in_addr) : Boolean;
Description¶
TryStrToHostAddr attempts to convert IP to an IPV4 address. If successful it returns the address in ip4 and returns True. If unsuccessful it returns False.
See also¶
| Name | Description |
|---|---|
| StrToHostAddr | Convert a string to a host address. |
| TryStrToHostAddr6 | Try to convert a string to an IPV6 address. |