Syntax
VM_RESULT vm_cmd_open_port(
    VMUINT16 port, 
    vm_cmd_callback callback, 
    void* user_data
);
ContentsIndex
PreviousUpNext
vm_cmd_open_port
Syntax
VM_RESULT vm_cmd_open_port(
    VMUINT16 port, 
    vm_cmd_callback callback, 
    void* user_data
);
Description

This function is called to start listening for commands from the Monitor tool. Commands are passed from the port, which ranges from 500 to 65535. 

For example, if the command is passed into port 5000, then only the callback registered with port number 5000 will be invoked. 

This API fails when invalid port number is assigned.

Parameters
Parameters 
Description 
VMUINT16 port 
[IN] The port number, which ranges from 500 to 65535. 
vm_cmd_callback callback 
[IN] The callback that is invoked when it receives command from the assigned port. 
void* user_data 
[IN] User data for the callback; Pass NULL if unused. 
Returns
File

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