To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.org.ldrawOpen lugnet.cad.dev.org.ldraw in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Organizations / LDraw / 3661
3660  |  3662
Subject: 
Re: Automatic download of unofficial parts in LDView
Newsgroups: 
lugnet.cad.dev.org.ldraw
Date: 
Wed, 17 May 2006 18:33:18 GMT
Viewed: 
2118 times
  
In lugnet.cad.dev.org.ldraw, Travis Cobbs wrote:
In lugnet.cad.dev.org.ldraw, Dan Boger wrote:
Sounds reasonable.  Perhaps it might be more efficient (for the client)
to send just one request with a list of files it needs, and have the
server return all the ones that are found?  That should make the whole
operation faster, since it'll be just one HTTP request/reply, instead of
(potentially) hundreds.

That starts getting more difficult for a few reasons.  First of all, the tracker
would have to return all the dependent files on the tracker in addition to the
requested files.  Many of these files could well be already present on the
end-user's machine.

I'd say it wouldn't *have* to return the dependent files. LDView can turn
around, and make an additional request.

Secondly, from an architectural perspective, LDView doesn't have an easy way to
produce the list.  The code that I have right now checks the tracker any time it
gets to a reference to a part file that it can't find.

Well, the server can support multiple files per request, and client programs can
use it as well as they can.

We'd also have to agree on a format for the response containing the multiple
files.

Use MPD (within a text response).  Sending a stream of multiple files was the
original purpose of the MPD format.

Steve



Message has 1 Reply:
  Re: Automatic download of unofficial parts in LDView
 
(...) Right - it could only do so when asked by the client, and the client is always free to ignore data it doesn't need. (...) Could do that, or tar (which would work for non-DAT files, if needed). I'd be tempted to add a zip compression (as an (...) (19 years ago, 17-May-06, to lugnet.cad.dev.org.ldraw)

Message is in Reply To:
  Re: Automatic download of unofficial parts in LDView
 
(...) That starts getting more difficult for a few reasons. First of all, the tracker would have to return all the dependent files on the tracker in addition to the requested files. Many of these files could well be already present on the end-user's (...) (19 years ago, 17-May-06, to lugnet.cad.dev.org.ldraw)

26 Messages in This Thread:






Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR