Unit 'Sockets' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

TryStrToHostAddr

Try to convert a string to an IPV4 address.

Declaration

Source position: socketsh.inc line 196

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

StrToHostAddr

  

Convert a string to a host address.

TryStrToHostAddr6

  

Try to convert a string to an IPV6 address.


Documentation generated on: Jul 24 2023