Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_whoareyou( <hnetaddress> , @<cserver> ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_WHOAREYOU( <hNetAddress> , @<cServer> )


Parameters

<hNetAddress>
Full network address, a 24-digit hexadecimal number. See N_NETADDR().

<cServer>
Name of a memory variable to receive a server name.


Returns

If <hNetAddress> is the address of a user, the station number 
corresponding to the address is returned. If the address is not valid, 
the function returns zero.

If <hNetAddress> is the address of a server, the server type is 
returned. See the table below.

Code           Type of server
- 3            Print server
-47            Print server
- 4            File server
- 5            Job server


Description

Accepts a network address and returns the station number if the address 
is for a user, or the server type if the address is for a server. In 
either case, the server name is stored in the memory variable passed as 
the second argument.


Example

// Display an IPX message and the name of the sender
LOCAL cBuffer, cNetAddr, cServer, cOldServer, nStation
N_IPXRECV(@cBuffer, @cNetAddr)
nStation = WHOAREYOU(cNetAddr, @cServer)
cOldServer = N_SERVER()
? 'From: ', N_WHOAMI(nStation)
? 'Message: ', cBuffer
N_SERVER(cOldServer)



See Also: N_NETADDR() N_SPXCONNECT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson