Communicate message between Clients and Server using DotNet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sekarm
    New Member
    • Mar 2007
    • 26

    #1

    Communicate message between Clients and Server using DotNet

    Hi all,
    Happy to see you all again, I am going to develop one client server
    application using dotnet(vb.net or c#.net).The task is to develop two applications seperately. one application continuosly run on server that is watching clients application. than another application that is client application run on many systems. if any one open the client application in the client system the client connects to server and client gives some information to server, that is i am going to do task(i have to open notepad.exe), after that the server gives information to all connected clients that is new client is joined in its network then forward information to all clients it will do some work.
    Please give valuable information for above task. i have no idea about this. which one is best socket or tcp,

    Thanks in Advance,
    Sekar.M
  • darkmannofear
    New Member
    • Apr 2007
    • 18

    #2
    Use Sockets is powerful but it will consume more coding at the begining i think, and sure try to do it asynchronous socket programming, but you should have a knowleadge about threads, you will not involved into thread or even thread managment but you have to understand it in order to know what to do if you face any problem. best regards :-)

    Comment

    • sekarm
      New Member
      • Mar 2007
      • 26

      #3
      Hi,
      Thanks for your reply.can u show some code or link for socket programming.

      Cheers,
      ....Sekar

      Comment

      • eflatunn
        New Member
        • May 2007
        • 9

        #4
        I think you can use remoting if you won't have many clients.

        Comment

        • darkmannofear
          New Member
          • Apr 2007
          • 18

          #5
          http://www.codeguru.co m/csharp/csharp/cs_network/sockets/article.php/c8781/ this link have code samples and illustrations about Asynchronous Socket Programming, it might be helpful does this help?

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Originally posted by sekarm
            Hi all,
            Happy to see you all again, I am going to develop one client server
            application using dotnet(vb.net or c#.net).The task is to develop two applications seperately. one application continuosly run on server that is watching clients application. than another application that is client application run on many systems. if any one open the client application in the client system the client connects to server and client gives some information to server, that is i am going to do task(i have to open notepad.exe), after that the server gives information to all connected clients that is new client is joined in its network then forward information to all clients it will do some work.
            Please give valuable information for above task. i have no idea about this. which one is best socket or tcp,

            Thanks in Advance,
            Sekar.M
            Hi Sekar,

            I would recommend you do some research on Web Services.

            A Web Service is a collection of classes and functions that can be called by a client application to do some things.

            For instance when your application is loaded it could call a method hosted in a Web Service to submit some data to your server.

            They are very powerful and .NET simplifies using them.
            I strongly recommend googling .NET Web Services to find out more about them because I think they will help you in developing this system.

            15 Seconds has provided great coverage of the topic.
            CodeGuru also provides good coverage with examples on how to create and consume Web Services (scroll down past the advertisements)

            Hope this helps.
            Cheers!

            -Frinny

            Comment

            Working...