Search found 23 matches

by psf8500
2004-07-02 10:36
Forum: Programmer's Help
Topic: Adding IDC Handler - fails
Replies: 7
Views: 1491

You were on the right track with StringDefs. This link may help you with that.

A quick solution might be to just do this:

Code: Select all

transferMenu.AppendMenu(MF_STRING, IDC_OPEN, "Open file");
by psf8500
2004-06-15 01:04
Forum: Protocol Alley
Topic: 0.402 info(tth leaf transfers and no bz2list support)
Replies: 25
Views: 7321

OK. Point taken. Maybe some more testing was needed (losing interest in DC++k CDM now).
I'll fix it.
by psf8500
2004-06-14 18:02
Forum: Protocol Alley
Topic: 0.402 info(tth leaf transfers and no bz2list support)
Replies: 25
Views: 7321

Fix without testing => not fixed and 3.1 always kicking people for DC++ without slot for filelist erm. yeh it was tested. 3.1 will not consider a DC++ client without "BZList" in it's supports to be cheating if it does not give a slot for file list... else if( (d->isSet(Download::FLAG_USER_LIST)) &a...
by psf8500
2004-06-14 09:24
Forum: Programmer's Help
Topic: [Help] Converting a Lock into a Key (Java)
Replies: 18
Views: 3947

There is a more recent Java DC client here.

I've not tried it though.
by psf8500
2004-05-20 08:10
Forum: Programmer's Help
Topic: include which stl directory?
Replies: 14
Views: 2490

Image

Make sure you use the STLPort from the DC++ site.
by psf8500
2004-05-19 13:57
Forum: Programmer's Help
Topic: Erasing duplicate files of my share?
Replies: 1
Views: 709

Code: Select all

ShareManager::getInstance()->translateFileName(f->getParent()->getFullName() + f->getName())


That should do it. btw shouldn't this be in programmers help?
by psf8500
2004-05-11 15:36
Forum: Programmer's Help
Topic: Problem compiling latest CVS with STLPort 4.6.2
Replies: 9
Views: 1800

Can I ask you how you found this out? Well typedef map <u_int32_t, u_int16_t> CountryList; was obviosly causing the problem as you seem to have figured out already. The fact that it compiled ok in main build suggested that something was included in that which wasn't included in the makedefs project...
by psf8500
2004-05-11 12:18
Forum: Programmer's Help
Topic: Problem compiling latest CVS with STLPort 4.6.2
Replies: 9
Views: 1800

I got the same errors. But only when building MakeDefs.

Adding this:

Code: Select all

#include "../client/stdinc.h"


To MakeDefs\StdAfx.h seemed to fix it.

I had no problems building the rest of the project.
by psf8500
2004-02-25 18:03
Forum: Feature Discussion (Archived)
Topic: Re-using existing file lists before downloading
Replies: 8
Views: 653

Guess you could start the process of downloading the filelist as normal then once you get $FileLength compare it with the existing filelist you got.

If it's the same size theres a good chance it's the same filelist, if not download it...
by psf8500
2004-02-21 05:59
Forum: Programmer's Help
Topic: HubManager::save()
Replies: 2
Views: 662

Thanks Twink that helps. Looks like the state of the flag is never changed, its just initialised whenever HubManager::getInstance()->addUserCommand is called :)
by psf8500
2004-02-20 17:13
Forum: Programmer's Help
Topic: HubManager::save()
Replies: 2
Views: 662

HubManager::save()

I'm trying to add an extra page to settings on 0.306 similar to the user commands page. I did the obvious and used the user commands page as a template and edited it to my needs. Theres just one thing I can't quite figure out. I see frequent calls to the HubManager::save() function eg. void updateUs...
by psf8500
2004-02-08 06:33
Forum: Programmer's Help
Topic: Creating a languagefile
Replies: 9
Views: 1093

Twink wrote:alot of modders never learn how to use makedefs

Im one of them :lol:

I just managed to make a new Example.xml but it seems my stringdefs are in a bit of a mess.
I'll try and tidy them up a bit and include a proper Example.xml in the next release :)
by psf8500
2004-02-02 05:55
Forum: Programmer's Help
Topic: Limit alternative sources
Replies: 9
Views: 1721

When resuming DC++ rolls back a few bytes to check for validity. This gives some protection against corrupt downloads.
With segmented downloading this wont be possible.

Hashes would make it even safer.
by psf8500
2004-01-31 16:13
Forum: Programmer's Help
Topic: Download only first 5K of file.
Replies: 8
Views: 1451

interesting idea, is this for fake checking? An idea similar to this was suggested to me a few days ago here as a feature request for my CDM. My main concern with this was the no slots available problem that big muscle seems to be having. But if user don't have free slots, it writes "No Slots Avail...
by psf8500
2004-01-25 11:05
Forum: Programmer's Help
Topic: (...) LNK4098: defaultlib 'LIBCMTD' conflicts with(...) HELP
Replies: 5
Views: 909

I think i remeber having this problem before. I solved it by going to DCPlusPlus properties > Linker > Input and added LIBCMTD.lib (i think) to Ignore specific library. This may not have been the right way to fix it (i dont have to do this now) but it made it link ok. I think it was some sort of con...
by psf8500
2004-01-25 07:47
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 1659

its a bit of code i got from an old version of dc++k (0.181 i think) to allow remote share refreshing from another client.
by psf8500
2004-01-24 12:45
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 1659

some hubs dont like the extended $MyINFO. Theres an option not to send it in favorite hub properties.
by psf8500
2004-01-24 10:59
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 1659

hmm strange. works for me, i just tried it.

getFirstUpload is declared on line 101 of ShareManager.h

Have you made sure your not using precompiled headers?
by psf8500
2004-01-24 08:48
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 1659

have a look at this. Its a hub specific client i made. It has extra columns in user list for average upload rate per slot and total uploaded. It sends the extra info in the $MyINFO. a compatible client can receive this and display it in user list.
by psf8500
2004-01-22 19:13
Forum: Programmer's Help
Topic: Dropping slow users
Replies: 1
Views: 712

Here's a bit of code from DC++k 0.251 which may help: void MainFrame::onDownloadTick(const Download::List& dl) { vector<StringListInfo*>* v = new vector<StringListInfo*>(); v->reserve(dl.size()); { Lock l(cs); for(Download::List::const_iterat...
by psf8500
2003-12-26 19:51
Forum: Programmer's Help
Topic: Connected to # of hubs
Replies: 3
Views: 916

struct Counts { Counts(long n = 0, long r = 0, long o = 0) : normal(n), registered(r), op(o) { }; long normal; long registered; long op; bool operator !=(const Counts& rhs) { return normal != rhs.normal || registered != rhs.registered ...
by psf8500
2003-06-23 10:53
Forum: Other Direct Connect tools
Topic: DC++k
Replies: 361
Views: 100030

Got my first unhandled exception today since using dc++k. had to go back to 0.2510553k. i cant send exceptioninfo.txt cos it says my OS is too old (Win2k pro)

Other than that... its a great client. keep up the good work sarf :)