[Top]
Stdio
Stdio.File
|
Method Stdio.File()->query_address()
- Method
query_address
-
string query_address()
string query_address(int(0..1) local)
- Description
-
Get address and port of a socket end-point.
- Parameter local
-
If the argument local is not specified, or is 0 (zero),
the remote end-point will be returned. Otherwise, if local is
1 , the local end-point will be returned.
- Returns
-
This function returns the address and port of a socket end-point
on the form "x.x.x.x port" (IPv4) or
"x:x:x:x:x:x:x:x port" (IPv6).
If this file is not a socket, is not connected, or some other
error occurrs, 0 (zero) will be returned.
- See also
-
connect()
|