Advertisement

10.09.2008 at 03:21PM PDT, ID: 23802703 | Points: 500
[x]
Attachment Details

API socket filter on linux

Asked by pmsguy in Message Queue, Development Software

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
 
Loading Advertisement...
 
[+][-]10.25.2008 at 09:14PM PDT, ID: 22806077

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 14-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628