c# - TCP data forwarding

I have a server that accepts requests and data from two different sources (clients or techs) and I would like to be able to pass data between the two. I would like to accomplish this to either pass messages, or ideally in the end pass an rdp request from the techs to the clients. All my attempts thus far have failed and any help pointing me in the right direction would be greatly appreciated.
LVL 1
ktromp1Asked:
Who is Participating?
 
OrcbighterCommented:
You are describing a chat-server application, of which there are many coding examples on the web.
Here is a link to an example of a multithreaded chat server.
http://www.codeproject.com/Articles/16023/Multithreaded-Chat-Server

Open in new window

It is almost exactly what you want. Try that and modify it to your needs
0
 
alexey_gusevCommented:
could you simply tunnel it with we PUTTY ?
0
 
ktromp1Author Commented:
I will take a look at your link Orcbighter and let you know how it works.

@alexey_gusev I could but I would prefer it to be all handled by the application.
0
 
alexey_gusevCommented:
is this example sort of what you are looking for (perhaps with small modifications):

http://www.codeproject.com/Articles/14617/Windows-TCP-Tunnel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.