Identifying Upload file at status : connect?

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

Moderator: Moderators

MaC-GyVer
Posts: 4
Joined: 2004-07-02 14:46

Identifying Upload file at status : connect?

Post by MaC-GyVer » 2004-07-25 12:22

Hi, again :)

This time, I am wondering if it is possible to identify the file a user is requesting at the status connect ? My plan is to check if it is for example a picture. A picture does not demand alot of connection speed to be transfered, so it will be something like :

Code: Select all

if(rquestedfile==picture) {
open upload slot } else { do nothing }


So would this be possible, or do you have to do it the hard way ? (wait until the connection is established and then decide to let it continuo or disconnect ?)

Thanks for the help!

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2004-07-25 14:23

The place where "free" files are decided is in UploadManager::prepareFile().

Yes, you could do something very similar.

I do have a 14mb jpeg in my share:

magnet:?xt=urn:tree:tiger:ZJPSAV3VDWDH2QRHK5L2OKTLIYP5ISR2SZWCJYI&dn=wtc-photo.jpg

(awesome high res satellite photo of the World Trade Tower wreckage in NYC)

Who is online

Users browsing this forum: Google [Bot] and 0 guests