Skip to content

send_tupleSendTupleSendTuplesend_tupleT_send_tuple🔗

Short description🔗

send_tupleSendTupleSendTuplesend_tupleT_send_tuple — Send a tuple over a socket connection.

Signature🔗

send_tuple( socket Socket, string Tuple )void SendTuple( const HTuple& Socket, const HTuple& Tuple )static void HOperatorSet.SendTuple( HTuple socket, HTuple tuple )def send_tuple( socket: HHandle, tuple: Union[float, int, str] ) -> None

Herror T_send_tuple( const Htuple Socket, const Htuple Tuple )

void HSocket::SendTuple( const HTuple& Tuple ) const

void HSocket::SendTuple( const HString& Tuple ) const

void HSocket::SendTuple( const char* Tuple ) const

void HSocket::SendTuple( const wchar_t* Tuple ) const (Windows only)

void HSocket.SendTuple( HTuple tuple )

void HSocket.SendTuple( string tuple )

Description🔗

send_tupleSendTuple sends a tuple Tupletupletuple over the socket connection determined by Socketsocketsocket. The receiving HALCON process must call receive_tupleReceiveTuple to read the tuple from the socket. For a detailed example, see open_socket_acceptOpenSocketAccept.

Attention🔗

send_tupleSendTuple does not allow sending tuples containing HALCON handles.

Execution information🔗

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🔗

Socketsocketsocket (input_control) socket → (handle)HTuple (HHandle)HSocket, HTuple (IntPtr)HHandleHtuple (handle)

Socket number.

Tupletupletuple (input_control) string → (string / real / integer)HTuple (HString / double / Hlong)HTuple (string / double / int / long)Union[float, int, str]Htuple (char* / double / Hlong)

Tuple to be sent.

Combinations with other operators🔗

Combinations

Possible predecessors

open_socket_connectOpenSocketConnect, socket_accept_connectSocketAcceptConnect

See also

receive_tupleReceiveTuple, send_imageSendImage, receive_imageReceiveImage, send_regionSendRegion, receive_regionReceiveRegion, get_next_socket_data_typeGetNextSocketDataType

Module🔗

Foundation