Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
Hi guys,

I need a point of direction with this task :confused:

I have a number of clients connecting to my service. Each of these clients send a request which I process and send to a server to get a response, Which again is send back to the client who send the request.

So far I've made the solution with logon/logoff in each worker socket to access server, but the logon process is time comsuming so I have to come up with an other approach.

I want to route all my worker sockets request to the server through one class that handles all communication with the server.

I'am sure the solution is out there, but my googling has'nt lead me anywhere so far.

Any suggestion or links woud be much appriciated :)
Posted
Comments
krishna_goluguri 9-Jul-10 0:37am    
Reason for my vote of 4
bcoz it is useful for so many persons

1 solution

If your service uses HTTP, then what you want is called a 'Reverse Proxy'. Your clients can authenticate (set up a session) with the proxy, which can then pass on requests to your server. Apache, for example, can do this "out of the box". Google 'reverse proxy' for ideas. If you use some other socket protocol, then have a look at how reverse proxies work and 'borrow' the ideas you find helpful.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900