receive_tupleT_receive_tupleReceiveTupleReceiveTuplereceive_tuple (算子名称)
名称
receive_tupleT_receive_tupleReceiveTupleReceiveTuplereceive_tuple — Receive a tuple over a socket connection.
参数签名
Herror T_receive_tuple(const Htuple Socket, Htuple* Tuple)
def receive_tuple(socket: HHandle) -> Union[float, int, str]
描述
receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_tuple reads a TupleTupleTupleTupletupletuple that was sent over the socket
connection determined by SocketSocketSocketSocketsocketsocket by another HALCON process
using 该算子 send_tuplesend_tupleSendTupleSendTupleSendTuplesend_tuple.
If no tuple has been sent, the HALCON process calling receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_tuple
blocks until enough data arrives.
For a detailed example, see open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept.
注意
receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_tuple does not allow receiving tuples containing
HALCON handles.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
参数表
SocketSocketSocketSocketsocketsocket (input_control) socket → HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
套接字号码。
TupleTupleTupleTupletupletuple (output_control) string → HTupleUnion[float, int, str]HTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)
Received tuple.
可能的前置算子
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnectopen_socket_connect,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect,
get_socket_paramget_socket_paramGetSocketParamGetSocketParamGetSocketParamget_socket_param,
set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParamset_socket_param
参考其它
send_tuplesend_tupleSendTupleSendTupleSendTuplesend_tuple,
send_imagesend_imageSendImageSendImageSendImagesend_image,
receive_imagereceive_imageReceiveImageReceiveImageReceiveImagereceive_image,
send_regionsend_regionSendRegionSendRegionSendRegionsend_region,
receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegionreceive_region,
get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeGetNextSocketDataTypeget_next_socket_data_type
模块
Foundation