-
Notifications
You must be signed in to change notification settings - Fork 2
_port_handle
bergsma edited this page Sep 26, 2014
·
5 revisions
#port_handle
###Return the socket handle for a specific port device id.
Syntax
socket = port_handle id ;
Arguments
- int id
Device id. Valid range from 0 to 65535.
Return Value
handle socket
- socketHandle : The socket handle in which the device id is assigned to.
The STATUS variable is set to $ACKNOWLEDGE
- -1 : No socket handle exists for device id 'x'
The STATUS variable is set to %port
Warnings
- %port : No socket handle exists for device id 'x'
Exceptions
- %ARGUMENT: Invalid arguments. Usage: socket = port_handle id ;
Description
The port_handle function is used to return the socket handle that was automatically associated to a device id for incoming port connection requests through port_service()
Examples
puts "Create an example for the function 'port_handle'" ;
Related Links