BLib.NetUtil - Network Communication Library Routines ===================================================== File: NetUtil - Update: 0.10 Author: J.G.Harston - Date: 15-Mar-1993 The NetUtil library provides some network utility functions. Requirements and Dependancies ============================= The library calls functions in the NetFS and the Net library. Routine Summary =============== FNNet_Addr() - return station number or look for user FNNet_Ping() - check if a station is present FNNet_Type() - convert machine type to string FNNet_Addr(User$) ================= Returns the station number that the passed user is logged on at, or zero if the user is not logged on. For instance: FNNet_Addr("JIM") will return the station number than JIM is logged on at, or zero if not logged on. FNNet_Addr("1.254") will return the absolute station number 1.254. FNNet_Ping(Stn%) ================ Pings the remote station to check whether it is present. Returns 0 if the remote station is no present or the machine type of the remote station that can be passed to FNNet_Type(). FNNet_Type(Type%) ================= Converts the passed machine type to a string representing the machine type. The passed machine type is a value returned from FNNet_Ping(), as in the following example code: PRINT user$;": "; A%=FNNet_Ping(FNNet_Addr(user$)) IF A%:PRINT FNNet_Type(A%) ELSE PRINT "not logged on"