Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetttsend()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETTTSEND()
 Terminates a transaction
------------------------------------------------------------------------------
 Syntax

     NNETTTSEND([<cServer>|<nConId>]) --> nTransNumber

     Netware: 2.2 and 3.11

 Arguments

     <cServer>  Designates the name of the file server that is used.
     Your workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETTTSEND() returns the transaction number.  If the error occurs, the
     function returns -1.

 Description

     NOVELL NET TRANSACTION TRACKING SYSTEM END
     A call of NNETTTSEND() validates all write accesses to flagged,
     transactional files since the start of the transaction (NNETTTSBEG()).
     Before the end of a transaction, a buffer commit is executed.  At the
     end of a transaction, the file server assigns a transaction number, that
     can be used to determine when a transaction has been written
     successfully.

 Note

     .  When you use the Transactional Tracking System (TTS), always
        take into account that other stations might not be able to read files
        attached by the transaction (see the Introduction to this chapter).

 Example

     The following example demonstrates a typical transaction.  The
     transaction is embedded in a begin sequence structure.  If no problems
     occur, the transaction is completed normally at the end of the
     structure.  If problems do occur, a break causes a branch into the
     recover routine, where the transaction is undone by NNETTTSAB().

     BEGIN SEQUENCE
        NNETTTSBEG()
        //
        // Data manipulation
        //
        IF DISKSPACE() < 50000
           BREAK
        ENDIF
        //
        // Data manipulation
        //
        NNETTTSEND()
     RECOVER
        NNETTSAB()
     END

See Also: NNETTTSAB() NNETTTSBEG()

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