- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function inet_resolve(const address: string; port: word): TInetSockAddr;
Arguments:
-
address |
Target host address. It can be both host name or IP address as dotted quad. |
port |
Target host port. For example, 80 for HTTP. |
Description:
-
This function resolves string host name or IP address into TInetSockAddr address. Use it with sockets unit.
Returns:
-
TInetSockAddr struct.
Usage:
-
ia := inet_resolve('www.freepascal.org', 80);
|