Name
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect — Accept a connection request on a listening socket of the protocol type
'HALCON'"HALCON""HALCON""HALCON""HALCON""HALCON" or 'TCP'"TCP""TCP""TCP""TCP""TCP"/'TCP4'"TCP4""TCP4""TCP4""TCP4""TCP4"/'TCP6'"TCP6""TCP6""TCP6""TCP6""TCP6".
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect accepts an incoming connection
request, generated by open_socket_connectopen_socket_connectOpenSocketConnectopen_socket_connectOpenSocketConnectOpenSocketConnect in another HALCON
process or from an external application, on the listening socket
AcceptingSocketAcceptingSocketAcceptingSocketAcceptingSocketAcceptingSocketacceptingSocket. The listening socket must have been created
earlier with open_socket_acceptopen_socket_acceptOpenSocketAcceptopen_socket_acceptOpenSocketAcceptOpenSocketAccept. Its timeout determines the
timeout of the socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect call. If
WaitWaitWaitWaitWaitwait='true'"true""true""true""true""true", socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect waits until a
connection request from another HALCON process arrives. If
WaitWaitWaitWaitWaitwait='false'"false""false""false""false""false", socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect returns with
the error FAIL, if currently there are no connection requests from other
HALCON processes. The value 'auto'"auto""auto""auto""auto""auto" for WaitWaitWaitWaitWaitwait automatically
waits if the timeout of the accepting socket is not equal 0. The result of
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect is another socket SocketSocketSocketSocketSocketsocket, which is
used for a two-way communication with
another 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_acceptopen_socket_acceptOpenSocketAcceptopen_socket_acceptOpenSocketAcceptOpenSocketAccept.
For the data transfer with generic sockets only the operators
send_datasend_dataSendDatasend_dataSendDataSendData and receive_datareceive_dataReceiveDatareceive_dataReceiveDataReceiveData are available.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Socket number of the accepting socket.
Should the operator wait until a connection request
arrives?
Default value:
'auto'
"auto"
"auto"
"auto"
"auto"
"auto"
List of values: 'auto'"auto""auto""auto""auto""auto", 'false'"false""false""false""false""false", 'true'"true""true""true""true""true"
open_socket_acceptopen_socket_acceptOpenSocketAcceptopen_socket_acceptOpenSocketAcceptOpenSocketAccept
send_imagesend_imageSendImagesend_imageSendImageSendImage,
receive_imagereceive_imageReceiveImagereceive_imageReceiveImageReceiveImage,
send_regionsend_regionSendRegionsend_regionSendRegionSendRegion,
receive_regionreceive_regionReceiveRegionreceive_regionReceiveRegionReceiveRegion,
send_tuplesend_tupleSendTuplesend_tupleSendTupleSendTuple,
receive_tuplereceive_tupleReceiveTuplereceive_tupleReceiveTupleReceiveTuple,
send_datasend_dataSendDatasend_dataSendDataSendData,
receive_datareceive_dataReceiveDatareceive_dataReceiveDataReceiveData
open_socket_connectopen_socket_connectOpenSocketConnectopen_socket_connectOpenSocketConnectOpenSocketConnect,
close_socketclose_socketCloseSocketclose_socketCloseSocketCloseSocket,
get_socket_paramget_socket_paramGetSocketParamget_socket_paramGetSocketParamGetSocketParam,
set_socket_paramset_socket_paramSetSocketParamset_socket_paramSetSocketParamSetSocketParam
Foundation