Syntax
VM_UDP_HANDLE vm_udp_create(
    VMINT port, 
    VM_BEARER_DATA_ACCOUNT_TYPE data_account_type, 
    vm_udp_callback callback, 
    VMBOOL loopback
);
ContentsIndex
PreviousUpNext
vm_udp_create
Example
Syntax
VM_UDP_HANDLE vm_udp_create(
    VMINT port, 
    VM_BEARER_DATA_ACCOUNT_TYPE data_account_type, 
    vm_udp_callback callback, 
    VMBOOL loopback
);
Description

This function creates UDP socket.

Parameters
Parameters 
Description 
VMINT port 
[IN] The port number for binding. 
VM_BEARER_DATA_ACCOUNT_TYPE data_account_type 
[IN] Is a Type that defines how to connect, please see VM_BEARER_DATA_ACCOUNT_TYPE for details. 
vm_udp_callback callback 
[IN] The Callback function for UDP notifications. 
VMBOOL loopback 
[IN] The loopback setting, VM_TRUE: loopback; VM_FALSE: no loopback. 
Returns

The create UDP is successful or not.

Return Values
Return Values 
Description 
>=0 
The UDP handle.
 
< 0 
An error code in VM_UDP_RESULT
Example
 static VMINT g_hdll;
 void hl_udp_create(void)
 {
     VMINT port = 0x1234;
     g_hdll = vm_udp_create(port, VM_BEARER_DATA_ACCOUNT_TYPE_WLAN, udp_callback, VM_TRUE);
 }
File

vmudp.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.