程序代写代做 TCP Protocol Client (client side) Function:

TCP Protocol Client (client side) Function:
1. Server listen to the designated port and wait for Protocol Clients to request the TCP/IP network socket connection
2. Upon successful establishment of the TCP/IP connection, the Protocol Client shall commence sending the “HealthStatus” request message to the Protocol Server at a 15s intervals (configurable).
3. The “HealthStatus” acknowledgement message is received within the timeout period (configurable, 15s), after 2 consecutive failed responses on a TCP/IP connection, the Protocol Client shall declare that connection as Failed and shall close the connection.
4. Upon successful establishment of the TCP/IP connection and a successful “HealthStatus” request and acknowledgement message sequence, the Protocol Client shall ask for the latest status of platform information from the Protocol Server using the “LinkInit” message request.
5. Upon receiving the “LinkInit” message request, the Protocol Server will begin sending “Platform” messages regularly (Periodic/ by event). Display the message in a table format by Input Station ID and Platform number as filter.
Format: The protocol format contains three parts:
 0x02 Start of Protocol
 Message in XML format data
 0x03 End of Protocol
Configurable variable:
1. Server address
2. Server Port
3. HealthStatus Interval (15s)
4. HealthStatus Timeout (15s)