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> spxdisconnect()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPXDisconnect()
------------------------------------------------------------------------------
 Purpose:
 Disconnect from an SPX connection.

 Syntax:
 bResult = SPXDisconnect( wConnNum )

 Parameters:
 wConnNum The connection number from which to disconnect.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 SPXDisconnect() disconnects from the SPX connection partner specified by
 its connection number wConnNum.

 SPXDisconnect() returns TRUE if the disconnection was successful and FALSE
 if there was no SPX connection or if an error occurred.

 Example:
 // To test for an SPX connection and disconnect from the SPX partner:
 wSPXConn = SPXConGet(4)
 if (wSPXConn != NOVERRINT)
    if wSPXConn > 0
       ? "We are currently connected to workstation"
       ?? SPXAdrGet(4),"on connection number ",wSPXConn
       if SPXDisconnect(4)
          ? "We have now disconnected from SPX connection 4"
       endif
    else
       ? "We are not currently connected to another workstation
       ?? "via SPX connection number 4"
    endif
 else
    ? "No SPX session in progress."
 endif

 Notes:
 If you disconnect from an SPX partner, the partner will not know
 that the connection is broken until the next attempt to send a packet using
 the SPXPktSnd() function, which will subsequently fail.

See Also: SPXInstalled() SPXPktGet() SPXPktSnd() SPXConnect()

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