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>nbscontarg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NBSCONTARG()
 Determines the target name of a NetBIOS communication session
------------------------------------------------------------------------------
 Syntax

     NBSCONTARG(<nHandle>) --> cNetBIOSName

     Netware: 2.2 and 3.11

 Argument

     <nHandle>  Designates the communication buffer.

 Returns

     NBSCONTARG() returns the destination's NetBIOS name.  If <nHandle> does
     not specify a NetBIOS session communication buffer or the NetBIOS
     session connection is not active, the function returns an empty string.

 Description

     NBSCONTARG() allows you to determine the destination's NetBIOS name
     after a call of NBSLISTCON().  For example, if no target name has been
     passed for NBSLISTCON(), the function can establish a connection to any
     requesting station.  The name of this station can be queried with
     NBSCONTARG().

 Example

     Wait for a NetBIOS session connection in the background.  After the
     connection has been set up, display the destination's NetBIOS name:

     nHandle=NBSLISTCON("MIKE",1000,1000)
     WHILE .NOT. PPCCONACT(nHandle)
     ENDDO
     ? 'Connection set up with ',NBSCONTARG(nHandle)

See Also: NBSLISTCON()

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