Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Imperceptus on February 09, 2004, 09:47 PM

Title: GetChunk
Post by: Imperceptus on February 09, 2004, 09:47 PM
I have not been able to find much helpful information on MSDN about the Internet Transfer Controls.  My question involves the GetChunk method.
Inet1.GetChunk Size, Type
Inet1.GetChunk 1024, icString

Im wondering If its at all possible to return only a range from the buffer that GetChunk reads?  Most of the Data that I need to grab is around the 33050 - 33100 byte range.  I have already taken steps to make sure that as soon as the data that I need is recieved is found, that it stops the loop that retrieves the data.  Just wondering like I mentioned above if I can return a certian range of bytes from the buffer instead of returning chunks of data... one after the other.

Title: Re:GetChunk
Post by: Adron on February 10, 2004, 10:19 AM
I don't think you can with that method. But what about giving the server a Range request, if this is http you're talking?
Title: Re:GetChunk
Post by: Imperceptus on February 10, 2004, 12:30 PM
it is http, how would I go about a range request?  Ive never even heard of such a thing.
Title: Re:GetChunk
Post by: Skywing on February 10, 2004, 12:32 PM
Quote from: Imperceptus on February 10, 2004, 12:30 PM
it is http, how would I go about a range request?  Ive never even heard of such a thing.
See RFC 2616 (http://www.rfc-editor.org/cgi-bin/rfcdoctype.pl?loc=RFC&letsgo=2616&type=ftp&file_format=txt).
Title: Re:GetChunk
Post by: Imperceptus on February 10, 2004, 12:56 PM
Oh... Hey this looks like some good reading, thanks skywing. :)