vtc_disconnect

Deprecated. Use lrvtc_disconnect. Disconnects from the server.

C Language

VTCERR2 vtc_disconnect ( PVCI2 pvci  );

C# Language

bool vts_multi.disconnect ( long pvci  );
Global Functions

Arguments

NameComments
pvciThe server connection handle.

vtc_disconnect disconnects from the server.

Return Values

C Language:   Returns zero on success or one of the Error Codes.

C# Language: Returns true on success.

Parameterization

All string input arguments can be passed using standard parameterization.

C Language Example

int rc;
PVCI2 pvci = 0;

pvci = vtc_connect("wizard",8888,VTOPT_KEEP_ALIVE);
    ...

rc = vtc_disconnect( pvci );
lr_log_message("Disconnect result rc=%d\n", rc);    

C# Language Example

.Net Multiple Connection Example