Share this page

# 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

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.

## 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

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: