I have 2 applications running an API on my Linux server that need to interface with a remote server via a socket.
The problem is I can ONLY have 1 outgoing and 1 incoming socket connection to the remote server.
A1 and A2 are the 2 applications on my server.
RS is the remote server.
I need to have the protocol for A1 and A2 funnel through a process on my server so there is 1 socket connection to this remote server RS.
How can I filter the protocol to go through this 1 socket to the remote system?
Do I create a queue of some sort?
Do I just create a daemon process on my server where A1 and A2 send their protocol to this daemon process and then the daemon process will send to the remote server?
Also, I am also receiving protocol from the remote server that needs to be sent to A1 or A2 depending on a unique key in the protocol.
Start Free Trial