locked
server send message to client without request

    Question

  • hi,

            I have a single server and multiple client architecture... I need to send messages from the server to the clients without the client requesting for a message.. ie server returning to client's message or call of a function..

     

    I want the server to start the communication.. where the server sends a message and the clients repond to it.. 

     

    All the tutorials i found on the net doesnt show this kind of communication...

     

    I posted this question earlier too but no one replied.. 

     

    I would like to know if this way of communication is possible in .net remoting???  If its not, is there anyother technology in .net to achieve it over the LAN?? is this possible only thru socket programming??

     

    thanks

     

    hari

    Thursday, June 21, 2007 6:37 PM

Answers

  • Look at WCF using netTCPbindings. I am doing this same thing. I listen for events in my WCF service hosted in a windows service. When the wcf service recieves a message from the SqlService Broker, it fires off an alert to any client that currently has an open channel with the service. On the client side, when I start the app I open a channel to the WCF service and listen for alerts to come in. You will need to do some research, but this was my first foray into WCF and i had it all in place in about 3 - 4 days with research and testing. I was very impressed at how easy it really was to do it.

     

    -paul

    Friday, June 22, 2007 1:21 AM
  • Juval Lowy has some great stuff that really helped me out  Check it out here http://www.idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11#WCF

     

    also look at the WCF Technology Samples that are downloaded from the .Net 3.0 site also look at this

    http://msdn2.microsoft.com/en-us/library/ms752250.aspx

     

    -paul

    Friday, June 22, 2007 7:48 PM

All replies

  • Look at WCF using netTCPbindings. I am doing this same thing. I listen for events in my WCF service hosted in a windows service. When the wcf service recieves a message from the SqlService Broker, it fires off an alert to any client that currently has an open channel with the service. On the client side, when I start the app I open a channel to the WCF service and listen for alerts to come in. You will need to do some research, but this was my first foray into WCF and i had it all in place in about 3 - 4 days with research and testing. I was very impressed at how easy it really was to do it.

     

    -paul

    Friday, June 22, 2007 1:21 AM
  • Thank you Paul

     

    I will start the searching right away...

     

    and if u could post the links on WCF using netTCPbindings..

     

     

    Hari

    Friday, June 22, 2007 5:11 PM
  • Juval Lowy has some great stuff that really helped me out  Check it out here http://www.idesign.net/idesign/DesktopDefault.aspx?tabindex=5&tabid=11#WCF

     

    also look at the WCF Technology Samples that are downloaded from the .Net 3.0 site also look at this

    http://msdn2.microsoft.com/en-us/library/ms752250.aspx

     

    -paul

    Friday, June 22, 2007 7:48 PM