evpp icon indicating copy to clipboard operation
evpp copied to clipboard

Add support for synchronous operations

Open ibroheem opened this issue 6 years ago • 3 comments

Take the real world operation below

  • Server3 connects to Server1

  • Server1 replies Server3

  • Server3 use Client (Dispatcher) to communicate with Server2

  • Client (Dispatcher) connects and send message to Server2

  • Server2 sends reply Client (Dispatcher)

  • Client (Dispatcher) gives the message to Server3

  • Server3 replies Server1

For Client (Dispatcher) to be possible, I think there should be support for synchronous operations, I have NOT yet able to achieve this using asynchronous

Thanks

untitled

ibroheem avatar Nov 02 '17 17:11 ibroheem

The TcpClient class cannot do this current AFAIK

ibroheem avatar Nov 02 '17 17:11 ibroheem

The TcpClient can do this job asynchronously well. I think any synchronous operations can be implemented by asynchronously operations.

zieckey avatar Nov 03 '17 02:11 zieckey

Yeah, the same problem. Message come several per one transfer, while supposed to come one at a time. And it seems not to be so friendly with mutexes that much...

Gabsylar1204 avatar Feb 22 '19 07:02 Gabsylar1204