receive_regionT_receive_regionReceiveRegionReceiveRegionreceive_region (Operator)

Name

receive_regionT_receive_regionReceiveRegionReceiveRegionreceive_region — Receive regions over a socket connection.

Signature

receive_region( : Region : Socket : )

Herror T_receive_region(Hobject* Region, const Htuple Socket)

void ReceiveRegion(HObject* Region, const HTuple& Socket)

HRegion HSocket::ReceiveRegion() const

void HRegion::ReceiveRegion(const HSocket& Socket)

static void HOperatorSet.ReceiveRegion(out HObject region, HTuple socket)

HRegion HSocket.ReceiveRegion()

void HRegion.ReceiveRegion(HSocket socket)

def receive_region(socket: HHandle) -> HObject

Description

receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegionreceive_region reads a region object that was sent over the socket connection determined by SocketSocketSocketSocketsocketsocket by another HALCON process using the operator send_regionsend_regionSendRegionSendRegionSendRegionsend_region. If no regions have been sent, the HALCON process calling receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegionreceive_region blocks until enough data arrives. For a detailed example, see open_socket_acceptopen_socket_acceptOpenSocketAcceptOpenSocketAcceptOpenSocketAcceptopen_socket_accept.

Execution Information

Parameters

RegionRegionRegionRegionregionregion (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Received regions.

SocketSocketSocketSocketsocketsocket (input_control)  socket HSocket, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Socket number.

Possible Predecessors

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

See also

send_regionsend_regionSendRegionSendRegionSendRegionsend_region, send_imagesend_imageSendImageSendImageSendImagesend_image, receive_imagereceive_imageReceiveImageReceiveImageReceiveImagereceive_image, send_tuplesend_tupleSendTupleSendTupleSendTuplesend_tuple, receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuplereceive_tuple, get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeGetNextSocketDataTypeget_next_socket_data_type

Module

Foundation