Jetter AG
229
JVM-407B
Programming
Receiving data
Data can be sent via a previously established TCP/IP connection or via a
UDP/IP connection of a server.
Via UDP/IP connection of a client data can not be received, but only sent.
Function ConnectionReceiveData(IPConnection:Int,
Ref
IPAddr:Int,
Ref
IPPort:Int,
Ref
ReceiveData,
DataLen:Int,
Timeout:Int):Int;
Description of the function parameters:
Parameter
Value
Comment
IPConnection
Handle
Outcome of the function
ConnectionCreate()
IPAddr
Address of a variable for
saving the IP address of
the sender
Required only for UDP/IP
server
IPPort
Address of a variable for
saving the IP port number
of the sender
Required only for UDP/IP
server
ReceiveData
Address of the data block
to be received
DataLen
1 ... 4,000
Maximum data block length
in bytes
Timeout
0 ... 1,073,741,824 [ms]
0 = infinitely
The following return values are possible:
Return value
> 0
Number of received data bytes
-1
Error when receiving data, e.g. connection interrupted
-3
Invalid handle, e.g. receiving data via a UDP/IP client
-8
Timeout
Introduction
Function declaration
Function parameters
Return value
Summary of Contents for JVM-407B-HMI
Page 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Page 14: ......
Page 26: ...26 Jetter AG 2 Product description and design Rear view...
Page 34: ......
Page 80: ......
Page 106: ......
Page 144: ......
Page 168: ......
Page 178: ......
Page 182: ......
Page 258: ......
Page 268: ......
Page 274: ......
Page 294: ...294 Jetter AG Appendix Rear view...
Page 299: ......