LInet::OnConnectRequest

#include "ltwrappr.h"

virtual L_INT LInet::OnConnectRequest(plConnection, nError)

LInet * plConnection;

/* instance of a remote computer */

L_INT nError;

/* error code */

Overridable function that notifies a computer that a connection request has been received from a remote computer.

Parameter

Description

plConnection

Pointer to the instance of the remote computer that requests a connection.

nError

If no error has occurred, nError will be SUCCESS. If nError is < SUCCESS, an error has occurred.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Do not delete plConnection.

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::AcceptConnect, Class Members

Topics:

Sending and Receiving Data

Example

For an example, refer to LInet::ServerInit.