Open a socket to an existing socket.
::open_socket_connect opens a connection to an accepting socket on the computer HostName, which listens on port Port. The listening socket in the other HALCON process must have been created earlier with the operator ::open_socket_accept. The socket thus created is returned in Socket. To establish the connection, the HALCON process, in which the accepting socket resides, must call ::socket_accept_connect. For a detailed example, see ::open_socket_accept.
|
HostName (input_control) |
string -> HTuple.char * |
| Hostname of the computer to connect to. | |
| Default value: 'localhost' | |
|
Port (input_control) |
integer -> HTuple.long |
| Port number. | |
| Default value: 3000 | |
| Typical range of values: 1024 <= Port <= 65535 | |
| Minimum increment: 1 | |
|
Recommended increment: 1 | |
|
Socket (output_control) |
socket_id -> long * |
| Socket number. | |
::send_image, ::receive_image, ::send_region, ::receive_region, ::send_tuple, ::receive_tuple
::open_socket_accept, ::socket_accept_connect, ::close_socket
System