Upload speed

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Upload speed

Post by Big Muscle » 2004-01-23 15:05

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.

BSOD2600
Forum Moderator
Posts: 503
Joined: 2003-01-27 18:47
Location: USA
Contact:

Post by BSOD2600 » 2004-01-23 15:48

You mean the type of connection the user has specified (56K, cable, dsl, t1,etc) ? If so, thats compleatly worthless since the user can set it to whatever they want.

If you mean, sending the upload limit that the client has specified, then once again its not needed because DC++ does not support uplaod limiting and the other mods that do, will likely not send the info via MyINFO when they're not showing the B:/L: tag.

If you're talking about the users calculated upload speed, then that *might* be useful just to display in the clients tag. Course once again, it can be faked so why bother. Then another issue will arrise is how their maximum upload speed it determined. Use an external testing source (then you run into problems of people around the world) or some sort of average of the client.

Overall, the feature is not needed / useful.

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-01-23 16:05

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.

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-01-24 08:48

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.

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-01-24 10:42

But it can't be compiled. It writes Identifier not found: getFirstUpload, and I see that it's not declared anywhere.

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-01-24 10:59

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?

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-01-24 11:56

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 ?

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-01-24 12:45

some hubs dont like the extended $MyINFO. Theres an option not to send it in favorite hub properties.

Big Muscle
Posts: 72
Joined: 2004-01-23 14:45

Post by Big Muscle » 2004-01-25 05:12

I would like to copy this feature to my own DC klient. What is the RefreshPM function in source code ?

psf8500
Posts: 23
Joined: 2003-03-04 18:51
Contact:

Post by psf8500 » 2004-01-25 07:47

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.

Locked