in reply to Bidirectional Client/Server - to fork or not to fork?
In my experience, you need to open 2 sockets: one to to listen for and accept incoming connections, and the other to connect to the other server.
If I'm understanding your 2 posts correctly, I would imagine a processing flow like:
In the case where the Remote Server is initiating the transaction, a worker would proceed as above as though it were sending a results message. Any results sent back from the Local Server would be handled be handled the same as accepting requests as above.
I am sure there are modules/frameworks in CPAN that can handle the network part, especially if the communication between the Remote and Local servers is HTTP based.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bidirectional Client/Server - to fork or not to fork?
by ljamison (Sexton) on Dec 05, 2015 at 04:13 UTC | |
by RonW (Parson) on Dec 07, 2015 at 17:21 UTC |