good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: maybe OT, connection speedby CubicSpline (Friar) |
on Sep 26, 2001 at 19:28 UTC ( [id://114828]=note: print w/replies, xml ) | Need Help?? |
This kind of depends on what you're asking for? Do you mean, is there a way to implement this yourself in your own client/server application architecure? Then 'Certainly!' If you mean hooking up this sort of functionality to some other application, or adding the capability to a client without having any control over the server, then I'd say 'I don't know.' When I've done this in the past, I have my servers response to a client begin with a preamble that includes the length, in bytes, of the response as a whole. Then all the client has to do is keep a running total of the number of bytes that have come in on the socket. HTTP does the same thing with the Content-Length header. HTH
In Section
Seekers of Perl Wisdom
|
|