Download User manual
Transcript
10 Programming Using this function with a TCP/IP connection If data are to be received via a TCP/IP connection, you can invoke the function and assign the return value of a variable for further evaluation as follows: Result := ConnectionReceiveData(hConnection, Dummy, Dummy, ReceiveBuffer, sizeof(ReceiveBuffer), T#10s); Functioning principle with a TCP/IP connection When using TCP/IP, data are sent via a previously opened connection. Therefore, specification of the IP address and IP port number is not required any more and can be ignored in the function. In the following cases, the task is not processed further after issuing the function call: The data have been received An error has occurred In case of a TCP/IP connection, data are transmitted as data stream. The device JC-350 processes this function in the following steps: Step 1 2 3 Description The device JC-350 waits until data have been received, but no longer than the specified timeout. If ... ... then ... the timeout has elapsed or the connection has been terminated, the function is exited and an error message is issued. data have been received, they are copied to the receiving buffer given along with the data (but not exceeding the amount given along with the data). Then, the function continues with stage 3. If ... ... then ... more data have been received than these are buffered by the JC-350 to could have been copied into the be fetched by further function calls. receiving buffer, 4 Using this function with a UDP/IP server The function is exited and the number of data, which have been copied into the receiving buffer, is returned. If, with a server, data are to be received via a UDP/IP connection, you can invoke the function and assign the return value of a variable for further evaluation as follows: Result := ConnectionReceiveData(hConnection, IPAddr, IPPort, ReceiveBuffer, sizeof(ReceiveBuffer), T#10s); 532 Jetter AG
Related documents
User manual
Odessa (0.75 L + 3.0 L) Rebecca (1.0 L + 5.0 L) Romanov (1.0 L +
User manual
JC-24x - Version Update from 3.25 to 3.26
JCM-350-E03
User manual
Installationsanleitung PND
User manual
JX3-DO16 - Jetter AG
User manual
2 - Jetter AG
JXM-MUX - Jetter AG
32-bit All Flash V850E,V850ES Microcontrollers Pamphlet
JX3-AO4 - Jetter AG
Butt Welding Course Manual - Polysmart Plastics Welder Training
Finisar Surveyor User's Manual