492
Jetter AG
10 Programming
Sending data
Data can be sent via a previously established TCP/IP connection or via a
UDP/IP connection of a client.
Via UDP/IP connection of a server data cannot be sent, but only received.
Function
ConnectionSendData(IPConnection:Int,
IPAddr:Int,
IPPort:Int,
Const
Ref
SendData,
DataLen:Int):Int;
Description of the function parameters:
Parameter
Value
Comment
IPConnection
Handle
Return value of the function
ConnectionCreate()
IPAddr
Valid IP address
Required only for UDP/IP
client
IPPort
Valid IP port number
Required only for UDP/IP
client
SendData
Address of the data block
to be sent
1 ... 4,000
Data block length in bytes
The following return values are possible:
Return value
0
Data have been sent successfully.
-1
Error when sending, e.g. connection interrupted.
-3
Invalid handle, e.g. sending via a UDP/IP server.
If data are to be sent via a TCP/IP connection, you can invoke the function
and assign the return value of a variable for further evaluation as follows:
Result := ConnectionSendData(hConnection,
0
,
0
,
SendBuffer,
SendLen);
Introduction
Function declaration
Function parameters
Return value
Using this function with
a TCP/IP connection
Summary of Contents for JC-120MC
Page 1: ...User Manual JC 120MC Controller 60880901 We automate your success...
Page 18: ......
Page 40: ...40 Jetter AG 3 Identifying Hardware revisions see page 38 Related topics...
Page 160: ......
Page 186: ......
Page 196: ......
Page 485: ...Jetter AG 485 JC 120MC Programming Topic Page Programming 486 Registers 498 Contents...
Page 521: ...Jetter AG 521 JC 120MC Programming Use 29 bit identifier Default 11 bit identifier...
Page 586: ......
Page 604: ......
Page 633: ......