LInet::CloseAll

#include "ltwrappr.h"

virtual L_INT LInet::CloseAll(bByType=FALSE)

L_BOOL bByType;

/* disconnect type */

Closes all connections with a remote computer, either servers or clients.

Parameter

Description

bByType

Flag that determines the type of connection to close. Possible values are:

 

Value

Meaning

 

SERVER

close all servers connections.

 

CLIENT

close all clients connections.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The user can combine the two values to close all connections.

You must initialize the LEADTOOLS Internet DLL using LInet::StartUp before calling this function.

Required DLLs and Libraries

LTNET

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LInet::Connect, LInet::ServerInit, LInet::ServerShutdown, LInet::SendData, LInet::StartUp, LInet::ShutDown, Class Members

Example

LInet Inet;

// connect to LEAD.
Inet.Connect("207.238.49.190", 1000);

// other operations

Inet.CloseAll();