Hi Guys,
I have a question about client server programming. My question as following, How to implement a program in C# that act as a router (Bridge) such that it receive the stream from one side and send the same stream to other side & vice versa.
Server <--> the Program <--> Client
Thanks
Mahesh ChandPosted Feb 4, 2009, 10:24 AM
You can build your "The Program" = "Bridge" as a Windows Service that will run automatically and provide a communication between the client and the server. You can set a timer in the service to communicate at a certain interval of time. Check Windows Services section of this site to learn more about how to write a Windows service.
If your client-server communicate direct, you may use TCP/IP protocall and use Sockets to talk to each other based on some activity. Your client and server application will listen on a port and they can communite via that port. See Network Programming section of this site on the home page to learn about Socket Programming.