Syntax
VM_RESULT vm_tcp_close_sync(
    VM_TCP_HANDLE handle
);
ContentsIndex
PreviousUpNext
vm_tcp_close_sync
Example
Syntax
VM_RESULT vm_tcp_close_sync(
    VM_TCP_HANDLE handle
);
Description

This function closes an open TCP connection synchronously and it will be blocked until it has finished closing the connections.

Parameters
Parameters 
Description 
VM_TCP_HANDLE handle 
[IN] The TCP handle. 
Example
 static VMINT g_tcp_sync_hd;
 void hl_tcp_sync(void)
 {
     g_tcp_sync_hd = vm_tcp_connect_sync("123.123.123.123", 80, VM_BEARER_DATA_ACCOUNT_TYPE_NON_PROXY);
     vm_tcp_close_sync(g_tcp_sync_hd);
 }
File

vmtcp.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.