user->getIp() in HubFrame.h returns empty value

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

Moderator: Moderators

Locked
grappa
Posts: 1
Joined: 2004-05-02 12:23

user->getIp() in HubFrame.h returns empty value

Post by grappa » 2004-05-02 12:43

I would like to show the user's IP in the user list of a hub. But I don't get the IP when I insert user->getIp() in HubFrame.h. The return value always is empty.

I hope, that someone can help me.

Thanks a lot!

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

Post by GargoyleMT » 2004-05-02 13:35

Does the hub you're connecting to support $UserIP? That's the only way a user's IP gets set in DC++.

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2004-05-02 15:35

getIp() probably return a stringref; which probably defaults to empty string if no is there. Try to follow the code and see where it get set and you will start to understand it. ,))
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Locked