Herror ::socket_accept_connect (
    const HTuple &AcceptingSocket,
    const HTuple &Wait,
    long *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 -> HTuple.long
Socket number of the accepting socket.

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

Socket (output_control)
socket_id -> long *
Socket number.


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-2002 MVTec Software GmbH