Data reception processing for response messages
The following shows an example of the data reception processing of an external device.
Communication process of the
Send request message
Receive response message
Is TCP connection open?
Could data be received
within the monitor timer
Check the received data size
Is receive data-size
Process the response message
Was the entire received
For Ethernet communication, TCP socket functions are used inside personal computers.
These functions have no concept of boundaries. When the sender sends data by calling the send function
once, the receiver will call the recv function once or more to read that data. (Send and recv do not have a one-
Therefore, the processing shown above is always required in the program of the receiving device.
When the recv function is used with the blocking mode, data may be read by calling the function once.
5 SLMP FUNCTION