VM_RESULT vm_cmd_open_port( VMUINT16 port, vm_cmd_callback callback, void* user_data );
VM_RESULT vm_cmd_open_port( VMUINT16 port, vm_cmd_callback callback, void* user_data );
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 |
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. |
vmcmd.h
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.