
SDK Programming Guide Version 1.511
ABLELink
R
Ethernet-Serial Server MAXI Series
Example:
Close an exist UDP channel
udp_close ( handle );
wait ( 2 );
// wait for 2 seconds for garbage collection
Remarks:
This function is used by the client and severs to close an UDP
communication channel.
udp_receive()
Description:
Receive data from the remote site.
Include:
tcpapi.h, tcpdef.h
Usage: int udp_receive (int
handle
, char far *
pbuf
, unsigned short
len
, farFUNC
postfunc
, void far *
parg
)
handle
the handle of the UDP channel created by
udp_open
postfunc
entry point of the post-function
pbuf
the pointer of receive buffer
parg
the pointer of arguments to pass to post-function
Input Parameters:
len
data length
Return Value:
SUCCESS successful
others error, the definition of ERROR number please refer to the file
“
tcpdef.h
”
Copyright © 2004 Atop Technologies, Inc.
All rights reserved. Designed in Taiwan.