socket_accept_connect ( : : AcceptingSocket, Wait : Socket )

Accept a connection request on a listening socket.

socket_accept_connect accepts an incoming connection request, generated by open_socket_connect in another HALCON process, on the listening socket AcceptingSocket. The listening socket must have been created earlier with open_socket_accept. If Wait='true', socket_accept_connect waits until a connection request from another HALCON process arrives. If Wait='false', socket_accept_connect returns with the error FAIL, if currently there are no connection requests from other HALCON processes. The result of socket_accept_connect is another socket Socket, which is used for a two-way communication with another HALCON process. After this connection has been established, data can be exchanged between the two processes by calling the appropriate send or receive operators. For a detailed example, see open_socket_accept.


Parameters

AcceptingSocket (input_control)
socket_id -> integer
Socket number of the accepting socket.

Wait (input_control)
string -> string
Should the operator wait until a connection request arrives?
List of values: 'true', 'false'

Socket (output_control)
socket_id -> integer
Socket number.


Parallelization Information

socket_accept_connect is reentrant and processed without parallelization.


Possible Predecessors

open_socket_accept


Possible Successors

send_image, receive_image, send_region, receive_region, send_tuple, receive_tuple


See also

open_socket_connect, close_socket


Module

System



Copyright © 1996-2005 MVTec Software GmbH