Skip to content

Client-Server At Same Time

Ahmad AlMarhoun

Asked Feb 4, 2009, 4:43 AM EST1 answer
Share
LinkedInX

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

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0

    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.

    0