Solved

Keep "Live" Connection to Server -- HELP!

Posted on 2002-03-03
4
208 Views
Last Modified: 2008-02-07
Is there any component that I can use to send a message string to a server via TCP/IP from my ASP page?

Thus, is there a way to keep a "live" connection to this server in such a way that an event will be triggered in the component when a message is received from the server?

I saw this IPPort component by IP*Works ASP Edition and I'm still evaluating it.  I found out that this component will enable my ASP page to send a message string to the server and receive an acknowledgement, but the problem is, after that one roundtrip, the connection is cut.  It will not keep a live connection.

Any other components that I can look at?  

Please help.  This is very urgent.

Thanks!
0
Comment
Question by:gladz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:loveneesh_bansal
ID: 6838735
waiting for answer
0
 
LVL 27

Accepted Solution

by:
BigRat earned 100 total points
ID: 6838912
The term Keep-Alive refers to the facility in HTTP/1.1 of making an TCP/IP connect to the server and sending multiple requests. The main reason why one would like to do this is the fact that the Connect operation is somewhat slow. When the browser fetches a page it often has to fetch gifs and jpegs from the same server. One would like to connect to the server only once.

The client (browser) sends a Keep-Alive: entity in the HTTP header, which the server may ignore, in the first message. The server sends the data for the request back and if it obeys keep alive it does not close the connection. To do this it MUST send a Content-Length: entity saying how many bytes the client is to read. In HTTP/1.0 the "end-of-data" was detected when the connection was closed.

I suspect from your question that you want to push a message out of the server to the client and not pull data from the server by the client. I believe that there are components which can do this, but they all rely on making another connection ON A DIFFERENT PORT. IPPort does exactly this. In any event it has nothing to do with Keep-Alive.

0
 
LVL 7

Expert Comment

by:lavinder
ID: 8812308
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept a comment - bigrat
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lavinder
EE Cleanup Volunteer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question