494
Jetter AG
10 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 cannot 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
Return value 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
Содержание JC-120MC
Страница 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Страница 18: ......
Страница 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Страница 160: ......
Страница 186: ......
Страница 196: ......
Страница 395: ...Jetter AG 395 JC 120MC Programming Result When initializing the JX2 system bus the adjusted baud rate values were used...
Страница 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Страница 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Страница 586: ......
Страница 604: ......
Страница 633: ......