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>nnetsemopc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETSEMOPC()
 Determines the number of stations that have opened a particular semaphore
------------------------------------------------------------------------------
 Syntax

     NNETSEMOPC(<nHandle>,[<cServer>|<nConId>]) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <nHandle>  Designates the semaphore handle that is returned by
     NNETSEMOPN() when the semaphore is opened.

     <cServer>  Designates the name of the file server on which <nHandle>
     has been created.  Your workstation must be attached to <cServer>.

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

 Returns

     NNETSEMOPC() returns the number of stations that have opened the
     semaphore specified by <nHandle>.  If an error occurs (for example, if
     the handle is invalid), the function returns -1.

 Description

     NOVELL NET SEMAPHOR OPEN COUNT
     NNETSEMOPC() allows you to determine the number of stations currently
     accessing a specific semaphore.  The semaphore is specified by a handle.
     The file server manages two values for each semaphore.  This function
     determines the number of stations that have opened <nHandle>.  This
     information has nothing to do with the semaphore's value.

 Examples

     .  Open semaphore TEST and determine the number of stations that
        have also opened this semaphore:

        nHandle=NNETSEMOPN("test")
        ? "Number of stations:", NNETSEMOPC(nHandle)

     .  The evaluation of the return value of  NNETSEMOPC() in an "if"
        statement allows you to limit the access to a semaphore's resource.

See Also: NNETSEMVAL()

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