open_socket_connect ( : : HostName, Port : Socket )

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.


Parameters

HostName (input_control)
string -> string
Hostname of the computer to connect to.
Default value: 'localhost'

Port (input_control)
integer -> integer
Port number.
Default value: 3000
Typical range of values: 1024 <= Port <= 65535
Minimum increment: 1
Recommended increment: 1

Socket (output_control)
socket_id -> integer
Socket number.


Parallelization Information

open_socket_connect is reentrant and processed without parallelization.


Possible Successors

send_image, receive_image, send_region, receive_region, send_tuple, receive_tuple


See also

open_socket_accept, socket_accept_connect, get_socket_timeout, set_socket_timeout, close_socket


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH