|
|||||
|
||||||
Other Library Functions |
function |
from-net-long |
Library: Network utilities (OMNETUTL) legacy library
Include: omnetutl.xin |
Return type: Integer Returns: An integer value. |
from-net-long (n)
Argument definitions
Use from-net-long to convert the bytes of a long network number into an integer.
You must include the following line at the beginning of your OmniMark program:
include "omnetutl.xin"
The network number is a sequence of bytes, not a base-10 number.
; translate the four-byte network number "1234" into an integer include "omnetutl.xin" process ; where "%1#" represents a byte with the value of 1 local stream network-bytes initial {"%1#%2#%3#%4#"} local integer host-long set host-long to from-net-long ( network-bytes ) output "d" % host-long
Other Library Functions from-net-long NETGetHostIP NETGetHostName NETIsVersionCompatible NETLibraryVersion net-long to-net-long |