I need to create a server to communicate with the hardware.
Most use a byte array hardware and communication
Determine the value of one byte of the incoming byte array, and
If you receive a specific byte, immediately to the client without delay
And transmits a response.
So
Allowing access of the client connected to the server, and
Being the first value, whether or not the start of the data whose value is determined
From beginning to end, the data received and
Comes a measure of the end of the process the value.
1) How to return an array that is received?
2) how to ensure that I received the termination value
3)Determine the total length receives a specific byte, and
A method for receiving by the length and return.