Utility Functions and C Language Reference > Virtual Table Server Functions (VTS) for C, C#, and Java > Virtual Table Server (VTS) Functions for Multiple Connections > Alphabetical Listing > vtc_disconnect

vtc_disconnect

Deprecated. Use lrvtc_disconnect. Disconnects from the server.

C Language

VTCERR2 vtc_disconnect ( PVCI2 pvci  );

C# Language

bool vts_multi.disconnect ( int pvci  );

Java Language

int Vtc.disconnect (  long pvci  );
Global Functions

Arguments

Name Comments
pvci The 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.

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

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

Java Language Example

Java Multi-Connection Example