send_tupleT_send_tupleSendTupleSendTuplesend_tuple (Operator)
Name
send_tupleT_send_tupleSendTupleSendTuplesend_tuple
— Send a tuple over a socket connection.
Signature
Herror T_send_tuple(const Htuple Socket, const Htuple Tuple)
def send_tuple(socket: HHandle, tuple: Union[float, int, str]) -> None
Description
send_tuplesend_tupleSendTupleSendTupleSendTuplesend_tuple
sends a tuple over the socket connection
determined by SocketSocketSocketSocketsocketsocket
. The receiving HALCON process must
call receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_tuple
to read the tuple from the socket. For a
detailed example, see open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept
.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
SocketSocketSocketSocketsocketsocket
(input_control) socket →
HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Socket number.
TupleTupleTupleTupletupletuple
(input_control) string →
HTupleUnion[float, int, str]HTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)
Tuple to be sent.
Possible Predecessors
open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnectopen_socket_connect
,
socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnectsocket_accept_connect
See also
receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_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
Module
Foundation