aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Advnaced IPfilter updater  (Read 3140 times)

gav616

  • Guest
Advnaced IPfilter updater
« on: March 05, 2008, 09:24:20 PM »

some emule mods offer a more advanced ipfilter updater that saves the user from downloading the full ipfilter file every time.

it work in downloading the ipfilter file from the url then analyzing it and giving that specific file a unique ID number (or tbh it might just check the time that the creation time of the file at the url), then every time it checks for an update if the IDs(or file times) are different from the current one it only then fully downloads it (because its obviously a more up-to-date one)
« Last Edit: March 05, 2008, 09:34:01 PM by gav616 »
Logged

Capitán Hispania

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Advnaced IPfilter updater
« Reply #1 on: March 23, 2008, 08:11:26 PM »

More simple to implement than this but i think would be effective too is to put an option to download ipfilter.dat every "x" days being this value configurable by the user.
Logged

gav616

  • Guest
Re: Advnaced IPfilter updater
« Reply #2 on: March 24, 2008, 02:29:24 PM »

More simple to implement than this but i think would be effective too is to put an option to download ipfilter.dat every "x" days being this value configurable by the user.

yeah, either would save bandwidth at both ends.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Advnaced IPfilter updater
« Reply #3 on: March 24, 2008, 05:30:21 PM »

We can check the "Last-Modified" http-header, and only download if it is different from the previous one. However, it'll take a number of changes to the current HTTP-download implementation.
Logged

gav616

  • Guest
Re: Advnaced IPfilter updater
« Reply #4 on: March 24, 2008, 05:58:33 PM »

i actually prefer Capitán Hispania idea, and must be really easy to implement
Logged