swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

netutil.from-net32

 
 

Library: Net, Network utilities (OMNETUTIL)
Import: omnetutl.xmd
Return type: Integer
Returns: 

An integer value.


Declaration

  netutil.from-net32 (n)

Argument definitions

n
a sequence of bytes or octets that encode a 32-bit number


Purpose

Use netutil.from-net32 to convert a network-ordered binary number into an integer.

Example

The following program reads and outputs a sequence of network-ordered numbers from a file. (The file is created in the example program for netutil.to-net32.)

  import "omnetutil.xmd" prefixed by netutil.

  process
     repeat scan binary-mode file "net32.dat"
        match netutil.net32 => num
           output "d" % netutil.from-net32 num || "%n"
     again

Because the file stores the binary numbers in network order, it can be read on any platform with the same results.

        Other Library Functions
   netutil.from-net32
   netutil.host-ip
   netutil.host-name
   netutil.net32
   netutil.omnetutil-version
   netutil.to-net32
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:33 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.