%gethostid() function

The %gethostid() function allows a FlashBASIC application to retrieve the unique 32-bit identifier for the current host. The ID is returned as a decimal number.

For Windows: Not Supported

Syntax

var = %gethostid()

Description

If the function fails, a value of -1 is returned and the FlashBASIC system(0) function returns the value of errno.

To compile successfully, the program must include the statement:

cfunction socket.builtin

Example(s)

cfunction socket.builtin
ID=%gethostid()
if ID=-1 then
   crt ’Cannot get host ID. errno=’:system(0)
   stop
end