Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> pssktnumget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PSSktNumGet()
------------------------------------------------------------------------------
 Purpose:
 Get the print server socket number.

 Syntax:
 iSktNum = PSSktNumGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned short int).

 Description:
 PSSktNumGet() returns the SPX socket number that the workstation
 is using to talk to the print server.

 Returns 0 if not logged into a print server.

 Example:
 // To find out the SPX socket number being used to talk to the print
 // server.
 iSockNo = PSSktNumGet()
 if ( iSockNo > 0 )
    ? "You are using SPX socket number", iSockNo
    ??"to talk to a print server"
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

 This function is useful if you intend to use the NOVLIB IPX and SPX
 functions to avoid using a socket that is already in use by the print
 server.

See Also: PSWSLogin() PSWSLogout() PSConNumGet()

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