Sign in Join
FPDoc Onlineexperiment

TryStrToHostAddr function

In unit Sockets

Try to convert a string to an IPV4 address.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.