[JAVA] ‘Network’ library related - server issue
hello.
Reference link: available() / Libraries / Processing.org
Client thisClient = myServer.available();
if (thisClient !=null) {
// 1) T1 : Initial connection time
String whatClientSaid = thisClient.readString();
if (whatClientSaid != null) {
// 2) operations, functions, calculations
}
// 3) T2 : Finish time
}
Please refer to the picture.
‘TCP SERVER’ operates in ‘DRAW(LOOP)’.
However, when times overlap as shown in the picture, an error occurs. Is there any way to solve this problem?
(Summary: If signals overlap during work, an error occurs)