ClassesClasses | | Operators

receive_tuplereceive_tupleReceiveTupleReceiveTuple (Operator)

Name

receive_tuplereceive_tupleReceiveTupleReceiveTuple — Receive a tuple over a socket connection.

Signature

receive_tuple( : : Socket : Tuple)

Herror receive_tuple(const Hlong Socket, char* Tuple)

Herror T_receive_tuple(const Htuple Socket, Htuple* Tuple)

void ReceiveTuple(const HTuple& Socket, HTuple* Tuple)

HTuple HSocket::ReceiveTuple() const

static void HOperatorSet.ReceiveTuple(HTuple socket, out HTuple tuple)

HTuple HSocket.ReceiveTuple()

Description

receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuple reads a tuple that was sent over the socket connection determined by SocketSocketSocketSocketsocket by another HALCON process using the operator send_tuplesend_tupleSendTupleSendTupleSendTuple. If no tuple has been sent, the HALCON process calling receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuple blocks until enough data arrives. For a detailed example, see open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAccept.

Execution Information

Parameters

SocketSocketSocketSocketsocket (input_control)  socket_id HSocket, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Socket number.

TupleTupleTupleTupletuple (output_control)  string HTupleHTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)

Received tuple.

Possible Predecessors

open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect, socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect, get_socket_paramget_socket_paramGetSocketParamGetSocketParamGetSocketParam, set_socket_paramset_socket_paramSetSocketParamSetSocketParamSetSocketParam

See also

send_tuplesend_tupleSendTupleSendTupleSendTuple, send_imagesend_imageSendImageSendImageSendImage, receive_imagereceive_imageReceiveImageReceiveImageReceiveImage, send_regionsend_regionSendRegionSendRegionSendRegion, receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegion, get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeGetNextSocketDataType

Module

Foundation


ClassesClasses | | Operators