Search found 72 matches

by Big Muscle
2004-02-08 05:10
Forum: Programmer's Help
Topic: 2 Questions (Search Tree View + Time to reconnect)
Replies: 5
Views: 2853

Ooh, I checked this file and it is very hard to copy it :-(

I have also segment downloading in my client and I need to hide all segments under one item.
by Big Muscle
2004-02-07 10:15
Forum: Programmer's Help
Topic: QueueItem download speed
Replies: 3
Views: 2643

Oh, I modify Reverse Connect source and it doesn't work. It says getCurrentDownload is not a member of Queue Item

I need to get speed of all segments of QueueItem.
by Big Muscle
2004-02-07 06:42
Forum: Programmer's Help
Topic: 2 Questions (Search Tree View + Time to reconnect)
Replies: 5
Views: 2853

2 Questions (Search Tree View + Time to reconnect)

Hello. I have this two questions:

1) Is there some way to change listview to treelistview in search window? I would like to hide the same files under one item with [+]

2) Where can I find (in source code) how often DC++ try to reconnect to sources ?

Thanks for answer ! :-)
by Big Muscle
2004-02-06 08:08
Forum: Programmer's Help
Topic: QueueItem download speed
Replies: 3
Views: 2643

QueueItem download speed

How can I get current download speed of Queue Item ??? (and use it in QueueManager.cpp)
by Big Muscle
2004-02-01 06:02
Forum: Programmer's Help
Topic: Limit alternative sources
Replies: 9
Views: 4929

Now it works. I added it into onAction function. I am making segment downloading and if I use it, it adds 200 sources for file. Now it uses only 10 sources :-)
by Big Muscle
2004-02-01 04:36
Forum: Programmer's Help
Topic: Limit alternative sources
Replies: 9
Views: 4929

I tried to limit it in function addSource, but if it finds a new source, it downloads a filelist from all user and it adds only limit number of users to the queue. How can I do so that it doesn't download a filelist for all sources ?

Sorry for my English :wink:
by Big Muscle
2004-02-01 03:22
Forum: Programmer's Help
Topic: Limit alternative sources
Replies: 9
Views: 4929

I have found this: bool QueueManager::addSource(QueueItem* qi, const string& aFile, User::Ptr aUser, bool addBad) throw(QueueException, FileException) { QueueItem::Source* s = NULL; // if qi->getSources.getSize()<15 { bool wantConnection = (qi->getPriority() != QueueItem::PAUSED); if(qi->isSource(aU...
by Big Muscle
2004-01-31 04:26
Forum: Programmer's Help
Topic: Limit alternative sources
Replies: 9
Views: 4929

Limit alternative sources

How can I limit max. alternative sources (in source code)???
by Big Muscle
2004-01-31 03:55
Forum: Programmer's Help
Topic: Download only first 5K of file.
Replies: 8
Views: 4493

It works. But if user don't have free slots, it writes "No Slots Available" and it don't use slots for small files.

I have made feature to extract info from MP3. It works very well. It downloads only 5 bytes of file insted of complete file.
by Big Muscle
2004-01-30 13:48
Forum: Programmer's Help
Topic: Download only first 5K of file.
Replies: 8
Views: 4493

I found tis line:

QueueManager::getInstance()->add(si->sr->getFile(), si->sr->getSize(), si->sr->getUser(), tgt + si->fileName);

I will try to change si->sr->getSize() to 5kB.
by Big Muscle
2004-01-30 13:34
Forum: Programmer's Help
Topic: Download only first 5K of file.
Replies: 8
Views: 4493

Download only first 5K of file.

I added an item to popup menu on search result. I need if I click on this item, it will download only first 5K of file. Can you help me ???
by Big Muscle
2004-01-26 08:57
Forum: Programmer's Help
Topic: Order in Queue
Replies: 4
Views: 2702

I have this idea. Client would send how many people are in Upload Queue Window and client on the other side would receive it and show: "You are 5 in queue"
by Big Muscle
2004-01-25 08:38
Forum: Programmer's Help
Topic: Sending information
Replies: 4
Views: 2758

I would like to send upload speed, but not in $MyInfo. There is some fireball status, which is send if upload >100kB/s and this is compared with function getAverageSpeed(). I want to send this result to network a if some user has my special client, receives it.
by Big Muscle
2004-01-25 08:02
Forum: Programmer's Help
Topic: Sending information
Replies: 4
Views: 2758

Yes, but I don't know which command I should use.
by Big Muscle
2004-01-25 07:29
Forum: Programmer's Help
Topic: Sending information
Replies: 4
Views: 2758

Sending information

Hello, is there any command to send special information ??? I tried to send $Supports but client on the other side don't receive it. And if I add this information to $MyInfo, I can't connect to many hubs.

Please help.
by Big Muscle
2004-01-25 05:12
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 4989

I would like to copy this feature to my own DC klient. What is the RefreshPM function in source code ?
by Big Muscle
2004-01-24 11:56
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 4989

Ohh, now it compiles very well.
But I can't connect to some hubs (phoenix.no-ip.cz), it writes Incorrect MyInfo tag.

How can I repair it ?
by Big Muscle
2004-01-24 10:42
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 4989

But it can't be compiled. It writes Identifier not found: getFirstUpload, and I see that it's not declared anywhere.
by Big Muscle
2004-01-24 08:46
Forum: Programmer's Help
Topic: Where can I find patch for WTL 7.1
Replies: 1
Views: 1623

Where can I find patch for WTL 7.1

Where can I find patch for WTL 7.1 so that the buttons don't disappear ?

I have only some diff version. How can I install it ?
by Big Muscle
2004-01-23 16:05
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 4989

I noticed that the client calculate upload speed and if it's > 100kB/s, it sends fireball status in $MyInfo. I could add a command for sending calculated speed in $MyInfo. But I don't know how to receive this value on the other side.
by Big Muscle
2004-01-23 15:05
Forum: Programmer's Help
Topic: Upload speed
Replies: 9
Views: 4989

Upload speed

How to send upload speed in $MyInfo a receive it in client on the other side ?

It could show upload speed of user and not only his connection type.
by Big Muscle
2004-01-23 14:53
Forum: Programmer's Help
Topic: Order in Queue
Replies: 4
Views: 2702

Order in Queue

I would like to make a feature what show number of people before me, when there aren't free slots.

How can I send some special message to user ?

When I don't have any free slots and user connects to me, client sends him special message, how many users is in upload queue.