basic.%gethostid
Gets the unique identifier of the current host.
Syntax
variable=%gethostid()
Description
allows a Pick/BASIC application to retrieve the unique 32-bit identifier for the current host. The id is returned as a decimal number.
If the function fails, a value of -1 is returned and the (Pick/BASIC) system(0) function returns the value of 'errno'.
To compile successfully, the program must include the statement:
cfunction socket.builtin
Example
cfunction socket.builtin
id=%gethostid()
if id=-1 then
crt 'Cannot get host id. errno=':system(0)
stop
end
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
