Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^4: Reverse download protocols

by tomasz (Acolyte)
on Aug 30, 2021 at 15:40 UTC ( #11136219=note: print w/replies, xml ) Need Help??

in reply to Re^3: Reverse download protocols
in thread Reverse download protocols [solved]

That's the whole thing, don't get me wrong... What are reasonable client questions here? The client has to guess the file. So it may ask for something like a hash (as in sha1). Then the server answers yes/no, or gives some hint. So it probably involves some hashing algorithm. I'm not sure...

Replies are listed 'Best First'.
Re^5: Reverse download protocols
by hippo (Bishop) on Aug 30, 2021 at 16:32 UTC

    It almost sounds like you are talking about caching. If that's the case then there is no need at all to reinvent that particular wheel. See (eg) the If-Modified-Since and Cache-Control headers.


      Sorry, but you seem to have not understood me at all. To clarify even more, the conversation might look like this:

      Client: hash1?
      Server: yes
      Client: hash2?
      Server: no
      Client: hash3?
      Server: yes
      And so on, until the client knows the file completely, so has no more questions.
        you seem to have not understood me at all

        With all due respect, I think that's because you haven't been clear at all. Your question makes almost no sense.

        And so on, until the client knows the file completely, so has no more questions

        Why does the client need to ask the server questions in order to download a file? wtf are you even talking about? This does not sound like any client/server file download transaction I've ever heard of.

        Sorry, but you seem to have not understood me at all.

        And he is not alone.

        You should perhaps start by telling us which protocol you are taling about. A client asking for a hash sounds like some peer-to-peer file sharing protocol, but rsync also uses a kind of hash. If it is not a common protocol, like HTTP, FTP, rsync, link to the protocol spec.

        Then, don't invent new terminology, use the one from the protocol spec.


        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136219]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-09-29 18:48 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (125 votes). Check out past polls.