I have done a fair amount of searches, but couldn't find any thing regarding this topic.
We have a telnet server that does data processing. Logging in telnet has overhead (time), so what I want to do is have a service (WCF) that spawns n number connections and act as the broker between applications/requests and the server.
All of these connections have successfully logged into the server and ready to send commands. Applications can send commands to this service to send to the server and then receive the data from this service. If there are more requests than the number of connections, then those requests will be queued.
I know how to use Threading and events, but how do I know which request to return the data to? LEt's say that there are 9 active requests running, how do I know which request the data returned belong to?
I would appreciate any pointer that can lead me to the right direction.
I am programming using C#