DC++ and remote refresh command
Moderator: Moderators
-
- Posts: 4
- Joined: 2003-01-06 02:12
DC++ and remote refresh command
Hey, I was wondering if it excists or if someone could be willing to program this little feature for me.
What I need: To be abel to send a person using this DC++ version a PM that says: !refresh or something like that.. Then the client will refresh its share list..
Why: I have some FTPs that are mainly controlled remotly.. I want to share a folder from each FTP in my HUBs.. But since nobody is around them much and not possible to install a remote admin program on them I need to find a way to refresh the share list after uploading a movie, MP3s or what ever..
Thx *s*
What I need: To be abel to send a person using this DC++ version a PM that says: !refresh or something like that.. Then the client will refresh its share list..
Why: I have some FTPs that are mainly controlled remotly.. I want to share a folder from each FTP in my HUBs.. But since nobody is around them much and not possible to install a remote admin program on them I need to find a way to refresh the share list after uploading a movie, MP3s or what ever..
Thx *s*
Running a linux server without ur boss knowing it? --=PRICELESS=--
-
- Posts: 4
- Joined: 2003-01-06 02:12
-
- Posts: 4
- Joined: 2003-01-06 02:12
-
- Posts: 6
- Joined: 2003-01-02 19:19
- Location: Sweden
It would be cool if it was implemented and password protected so you could send !refresh <password>
Cez made a client that could be remotely refreshed for ancient spirit. (We had a client that shared all the programs we mentioned in the faq)
It only reacted if usernames starting with [Ancient] wrote the command. (We have a ISP-prefix scripted hub so no other than the operators can call themselves [Ancient])
I don't know if anyone still has that client stored but if you ask nice he might make one for you. I think the one we used was based on 0.175 or something like that.
Cez made a client that could be remotely refreshed for ancient spirit. (We had a client that shared all the programs we mentioned in the faq)
It only reacted if usernames starting with [Ancient] wrote the command. (We have a ISP-prefix scripted hub so no other than the operators can call themselves [Ancient])
I don't know if anyone still has that client stored but if you ask nice he might make one for you. I think the one we used was based on 0.175 or something like that.
[url=dchub://ancient.myftp.org]ancient.myftp.org - [BBB][Sunet][Tele2] ONLY! @ 20GB (ISP/IP/Share Scripted)[/url]
Naah, it can take pretty long to refresh your shares, especially if you share a lot of small files from network drives. A much better approach was proposed already: when DC++ gets a request for a file in it's sharelist, and that file isn't available, it should refresh the share (it shouldn't refresh the share if it receives a request for non-existant file, as that could allow a remote attacker to DoS you).Hory wrote:A "forced refresh" should be implemented into DC++, once / hour, to make people stop moving their shared files somewhere else to avoid uploading to people.
-
- Posts: 9
- Joined: 2003-01-04 12:41
too dangerous for my tastes
Remotely refreshed lists are too vulnerable for abuse. I'm sharing a mapped network drive, if someone would send me a forced refresh every minute or two, my network would grind to a halt. You'll get users asking for config options to disable it, and programmers doing just that.
Previously it has been suggested to auto refresh when the client gives out 'file unavailable'. I don't see how anybody could object to that. You might miss out on the latest and greatest, but at least you remove the unavailable problem, and a popular cheat.
Periodic refreshed list make sense too. I'm all for it.
Previously it has been suggested to auto refresh when the client gives out 'file unavailable'. I don't see how anybody could object to that. You might miss out on the latest and greatest, but at least you remove the unavailable problem, and a popular cheat.
Periodic refreshed list make sense too. I'm all for it.
-
- Posts: 4
- Joined: 2003-01-06 02:12
-
- Posts: 13
- Joined: 2003-01-03 23:25
I like the periodic refresh button. I know I often forget to refresh my filelist, and I get kicked for doing so every so often. Since I've usually got DC++ uptimes of weeks, it'd be great not to have to type '/refresh' every time I finish a new file and share it or rearrange my files around.
And if none of this is feasible, what about a refresh button on the toolbar? :)
And if none of this is feasible, what about a refresh button on the toolbar? :)
Macro Magic Work-a-Round
If u dont have macro magic u should get it.
U can set it up to refresh your list as u want it to.
I imagine in linux and such it could be scripted if u know how, i suppose in windows too but i dont know how like most users, so macro magic is WONDERFUL! put it in learn mode, let it watch u move your mouse around (bringing dc++ up to forground, clicking in the comand line, typing /refresh, hiding the app away again from your boss...)then tell it to play it back at 500% speed and watch it BLINK thru all the steps u took!
then just put a time value on it like every 2 hours or whatever...
U have got to admit the net RULEZ!
U can set it up to refresh your list as u want it to.
I imagine in linux and such it could be scripted if u know how, i suppose in windows too but i dont know how like most users, so macro magic is WONDERFUL! put it in learn mode, let it watch u move your mouse around (bringing dc++ up to forground, clicking in the comand line, typing /refresh, hiding the app away again from your boss...)then tell it to play it back at 500% speed and watch it BLINK thru all the steps u took!
then just put a time value on it like every 2 hours or whatever...
U have got to admit the net RULEZ!
Re: DC++ and remote refresh command
I've finished hacking this together for the next beta version of DC++k. If you want to get the code, PM me.[TGA]Osiris wrote:Hey, I was wondering if it exists or if someone could be willing to program this little feature for me.
I decided that you have to specify a "passphrase" and then any PM with the "!refresh <passphrase>" syntax which matches the passphrases causes an immediate forced refresh.
I also added an option to force refresh the share every hour (DC++ tries to automatically refresh the share every hour, but if the share hasn't been touched it won't do anything, and since DC++ does not trace the changes on the harddrive...). Again, if you want this code, PM me.
Sarf
---
Well, Katrina likes it.
-
- The Creator Himself
- Posts: 296
- Joined: 2003-01-02 17:15
Re: DC++ and remote refresh command
I've always wondered why it didn't work...sarf wrote:(DC++ tries to automatically refresh the share every hour, but if the share hasn't been touched it won't do anything, and since DC++ does not trace the changes on the harddrive...).
Re: DC++ and remote refresh command
This is pretty useless IMO - a much better approach is that DC++ would automatically refresh the share when a requested file (which exists in the sharelist) is not found on the disk - this way the user's share would be almost always current, while the feature couldn't be abused to DoS the user (after the share is refreshed, all files in the sharelist are available - unless the user himself removed the file again).sarf wrote:I decided that you have to specify a "passphrase" and then any PM with the "!refresh <passphrase>" syntax which matches the passphrases causes an immediate forced refresh.
Re: DC++ and remote refresh command
... but you'd have to code it right. Unfortunately, that's not as much of a quick fix as I'd like (I dislike going into the nitty gritty internals). Besides, sometimes you want to force a refresh (when you know that some new files should have appeared) and then you want a way to do that without having to do strange things like sending a manually edited file request or somesuch.ender wrote:This is pretty useless IMO - a much better approach is that DC++ would automatically refresh the share when a requested file (which exists in the sharelist) is not found on the disk - this way the user's share would be almost always current, while the feature couldn't be abused to DoS the user (after the share is refreshed, all files in the sharelist are available - unless the user himself removed the file again).sarf wrote:I decided that you have to specify a "passphrase" and then any PM with the "!refresh <passphrase>" syntax which matches the passphrases causes an immediate forced refresh.
No matter. I've added this as yet another feature for those that want it.
Sarf
---
Time is but the stream I go a-fishing in.
Auto-refresh is good: the Okb bug
I don't know what causes this but I have experienced on a number of occasions the so called "0kb bug" - share dropping to zero on the list. I have gotten banned because of this (I normally share 120 Gb). The ones that have not banned have suggested the /refresh works. It is because of this that I find it imperative that an auto-refresh every few hours is implemented. I don't know if this is the fault of dc++ or hub software/scripts. It does not happen often enough to know for sure. I suspect maybe the hub is to blame.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Re: Auto-refresh is good: the Okb bug
When this happens, can you open your own list and see what appears there?Argonne wrote:I don't know what causes this but I have experienced on a number of occasions the so called "0kb bug" - share dropping to zero on the list.
(does it happen simultaneously on all hubs?)
There is an hourly share refresher, it may have been in there all along, but the earliest I can see mention of it in the changelog is in 0.23. (It's not important enough to go source diving just to find that out )I find it imperative that an auto-refresh every few hours is implemented.
GargoyleMT:
About the 0Kb event:
It does not seem to happen simultaneously at all hubs, now that you mention it. I have not really checked. I have mainly noticed this when I have gotten kicked/banned for sharing 0kb. I then refreshed on all hubs, but I have never had problems like this on more than one hub at a time. So it seems that it may be connected with something that some hubs do.
Thanks for mentioning the v. 0.23 feature. I have to update now.
About the 0Kb event:
It does not seem to happen simultaneously at all hubs, now that you mention it. I have not really checked. I have mainly noticed this when I have gotten kicked/banned for sharing 0kb. I then refreshed on all hubs, but I have never had problems like this on more than one hub at a time. So it seems that it may be connected with something that some hubs do.
Thanks for mentioning the v. 0.23 feature. I have to update now.
Re: Auto-refresh is good: the Okb bug
It was there all along, but it was "neutered" in earlier versions... every hour DC++ would look at the share and see that all was good (since no files had been added/removed from it)... and thus ignore to update itself.GargoyleMT wrote:There is an hourly share refresher, it may have been in there all along, but the earliest I can see mention of it in the changelog is in 0.23. (It's not important enough to go source diving just to find that out )
Oh well.
Sarf
---
Did you know that lithium builds up in the fatty tissues of the body?
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Well, if this keeps happening, please make a bug reportand post as many relevant details there as you can muster... :-/Argonne wrote:It does not seem to happen simultaneously at all hubs, now that you mention it. I have not really checked. I have mainly noticed this when I have gotten kicked/banned for sharing 0kb. I then refreshed on all hubs, but I have never had problems like this on more than one hub at a time. So it seems that it may be connected with something that some hubs do.