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.
|
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. | |
::send_image, ::receive_image, ::send_region, ::receive_region, ::send_tuple, ::receive_tuple
::open_socket_connect, ::close_socket
System