Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Keep "Live" Connection to Server -- HELP!

Posted on 2002-03-03
4
Medium Priority
?
212 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
3 Comments
 
LVL 1

Expert Comment

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

Accepted Solution

by:
BigRat earned 400 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

824 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