1) Read file, spawn 3 children
2) Each child contacts the second file(server)
3) And sends a value, with a destination child
4) Server file waits for all three sends
5) Encodes them according to specs
6) And then sends the encoded message to each child 1 second apart
Once a child received a response from the server, it decodes and outputs the information
I can do this in an afternoon. With proper tuning and debugging the day following.
As a new Freelancer user, I'd suggest you message me to review my experience outside this platform.