|
-
Aug 15th, 2003, 03:55 AM
#1
Thread Starter
Fanatic Member
Downloading Speed Rate adjustment (experts)
Experts,
Is there a way to control the amount of bytes receive from the server per second ? What request information that i need to submit to the server so that the server understand and send the required amount of bytes at the specified speed... can this be done in vb6.........
you see, that the flash get has the adjustable download speed .... i want to have that too .... what should i look into now ?
i get this from rfc http 1.1 :
------------------------------------
The Accept-Ranges response-header field allows the server to
indicate its acceptance of range requests for a resource:
Accept-Ranges = "Accept-Ranges" ":" acceptable-ranges
acceptable-ranges = 1#range-unit | "none"
Origin servers that accept byte-range requests MAY send
Accept-Ranges: bytes
but are not required to do so. Clients MAY generate byte-range
requests without having received this header for the resource
involved. Range units are defined in section 3.12.
Servers that do not accept any kind of range request for a
resource MAY send
Accept-Ranges: none
to advise the client not to attempt a range request.
---------------------------------------------------------------------------
but unfortunately, i dont quite understand what this means... can anyone explain this to me please?
-
Aug 15th, 2003, 04:31 PM
#2
I don't yet know HTTP-protocol, but is it possible for you to tell server which bytes of the file you want to get? The starting point and how many? In so, you could make a timed request (ie. make many small-size request in a certain amount of time) to receive a file in a wanted speed.
-
Aug 15th, 2003, 04:49 PM
#3
Fanatic Member
As far as I know this can't be done. The only thing you could do is just handle your data really slow, so your buffer gets overloaded and then the server (if you use TCP) will adjust speed and send the missing packages again. So you could slow it down a bit.
Don't Hate Me Cause You Ain't Me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|