This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have a server Foo, that I connect to via a simple socket. I write text into the socket to send it messages and it replies with a response to my query once it's processed it, however it makes no guarantee of the order of responses. I can link up requests and responses with IDs. | |
Ex : | |
Send "1:request" to Foo | |
Foo Returns "1:response | |
Send "1:request" & "2:request" to Foo | |
Foo Returns "2:response" | |
10 seconds later |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
/** | |
* Results : | |
* | |
* /usr/java/jdk1.8.0/bin/java | |
* First = EEEE last = DDDD | |
* | |
* /usr/java/jdk1.7.0_40/bin/java | |
* First = IIII last = HHHH |