Socket Programming, web client applicatoin

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all i am doing a web client application using sockets, from this web page
i am able to send meesge to server application.
But if any message sending from server i am not able to receive
can anybody tell me how to receive messages from other application

thanks in advance
murthy
 
Well, here is the answer you got to this on the eggheadcafe.com forum:

"You need to post either some code,
or a more complete description of what you are attempting to do (preferably
both).

It is important to remember that an ASP.NET page is stateless; as soon as
the page class has finished rendering, it is gone and the page contents are
now in the client browser. So the idea of opening a socket from a "page",
sending a message, and waiting for a response is going to be difficult to
implement without some special code (for example, holding an instance of the
open socket in Application state). "

Hope that helps.
--Peter


Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
 
Hi peter, Thank u for ur response.
And i got what u said but Because of sateless property of web page
how do i know when a message coming from other application . my problem is
"something code should be moniter in the background of page and it has to
respond if any message coming from server and refresh the page with changes."

can u please tell me is there any way

Thank you
murthy
 
Back
Top