NWCloseConn(3nw)


NWCloseConn -- closes a connection

Synopsis

   #include <nwconnec.h> 
   

NWCCODE N_API NWCloseConn (NWCONN_HANDLE conn);

Description

The parameters are as follows:

conn
(IN) Specifies the connection handle to close.

Return values

0x0000
SUCCESSFUL

0x8801
INVALID_CONNECTION

Notices

After NWCloseConn closes a connection, the handle may not be used to access the connection. After all open handles to a connection are closed, the connection is available to be reused to access a different server, or it may be cached to allow quick access to the current server at a later time.

UNIX clients should call NWCloseConn rather than NWSysCloseConn since NWSysCloseConn will close the connection for all users.

Services

Connection

NCP calls

None

References

NWCCOpenConnByAddr(3nw), NWOpenConnByName(3nw), NWCCOpenConnByRef(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.