ClassesClasses | | Operators

send_xldT_send_xldSendXldSendXld (Operator)

Name

send_xldT_send_xldSendXldSendXld — Send an XLD object over a socket connection.

Signature

send_xld(XLD : : Socket : )

Herror T_send_xld(const Hobject XLD, const Htuple Socket)

void SendXld(const HObject& XLD, const HTuple& Socket)

void HSocket::SendXld(const HXLD& XLD) const

void HXLD::SendXld(const HSocket& Socket) const

static void HOperatorSet.SendXld(HObject XLD, HTuple socket)

void HSocket.SendXld(HXLD XLD)

void HXLD.SendXld(HSocket socket)

Description

send_xldsend_xldSendXldSendXldSendXld sends an XLD object over the socket connection determined by SocketSocketSocketSocketsocket. The receiving HALCON process must call receive_xldreceive_xldReceiveXldReceiveXldReceiveXld to read the XLD object from the socket.

Execution Information

Parameters

XLDXLDXLDXLDXLD (input_object)  xld(-array) objectHXLDHXLDHobject

XLD object to be sent.

SocketSocketSocketSocketsocket (input_control)  socket_id HSocket, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Socket number.

Example (HDevelop)

* Process 1
dev_set_colored (12)
open_socket_accept (3000, [], [], AcceptingSocket)
socket_accept_connect (AcceptingSocket, 'true', Socket)
receive_image (Image, Socket)
edges_sub_pix (Image, Edges, 'canny', 1.5, 20, 40)
send_xld (Edges, Socket)
receive_xld (Polygons, Socket)
split_contours_xld (Polygons, Contours, 'polygon', 1, 5)
gen_parallels_xld (Polygons, Parallels, 10, 30, 0.15, 'true')
send_xld (Parallels, Socket)
receive_xld (ModParallels, Socket)
receive_xld (ExtParallels, Socket)
stop ()
close_socket (Socket)
close_socket (AcceptingSocket)

* Process 2
dev_set_colored (12)
open_socket_connect ('localhost', 3000, [], [], Socket)
read_image (Image, 'mreut')
send_image (Image, Socket)
receive_xld (Edges, Socket)
gen_polygons_xld (Edges, Polygons, 'ramer', 2)
send_xld (Polygons, Socket)
split_contours_xld (Polygons, Contours, 'polygon', 1, 5)
receive_xld (Parallels, Socket)
mod_parallels_xld (Parallels, Image, ModParallels, ExtParallels, \
                   0.4, 160, 220, 10)
send_xld (ModParallels, Socket)
send_xld (ExtParallels, Socket)
stop ()
close_socket (Socket)

Possible Predecessors

open_socket_connectopen_socket_connectOpenSocketConnectOpenSocketConnectOpenSocketConnect, socket_accept_connectsocket_accept_connectSocketAcceptConnectSocketAcceptConnectSocketAcceptConnect

See also

receive_xldreceive_xldReceiveXldReceiveXldReceiveXld, send_imagesend_imageSendImageSendImageSendImage, receive_imagereceive_imageReceiveImageReceiveImageReceiveImage, send_regionsend_regionSendRegionSendRegionSendRegion, receive_regionreceive_regionReceiveRegionReceiveRegionReceiveRegion, send_tuplesend_tupleSendTupleSendTupleSendTuple, receive_tuplereceive_tupleReceiveTupleReceiveTupleReceiveTuple, get_next_socket_data_typeget_next_socket_data_typeGetNextSocketDataTypeGetNextSocketDataTypeGetNextSocketDataType

Module

Foundation


ClassesClasses | | Operators