Socket Programming, web client applicatoin

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
 
G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top