Closed GoogleCodeExporter closed 8 years ago
ok.
so this line is true for the russian nicks?
{{{
if ((usr = hub.GetUserById(usrId)) != null)
}}}
do you have a hub i can test this in?
Original comment by blomman84
on 10 Aug 2008 at 8:25
[deleted comment]
>so this line is true for the russian nicks?
>if ((usr = hub.GetUserById(usrId)) != null)
Yes, it is.
"russian nicks" = hub users with cyrillic symbols like "абвгд" in their
nicks.
>do you have a hub i can test this in?
No, my hub is inaccessible from the Internet.
But you can find other russian PtokaX hubs here:
http://www.dchublist.com/?page=result&type=as&country=Russian+Federation
Original comment by arctic....@gmail.com
on 11 Aug 2008 at 7:26
[deleted comment]
[deleted comment]
[deleted comment]
I have located source of problem and i have a quick fix that you can implement
in
your code if you can't wait until i have fixed problem in FlowLib.
=Description of problem=
Problem lays in the auto handling of what protocol to use. This is done so you
as a
developer shouldn't need to be bothered if the hub you are connecting to is
using Adc
or Nmdc protocol. Problem is that when switching between protocols we are also
switching between string encodings. It is here the problem lays. It doesn't
convert
the byte codes correctly as it is now.
=Temporary workaround=
You can temporary solve this if it is ok that your bot/client can only connect
to
hubs that use Nmdc protocol (Main hubs on direct connect use Nmdc protocol and
PtokaX
don't know any other protocol)
What you should do is changing from:
trans.Protocol = new FlowLib.Protocols.AdcProtocol(trans);
to:
trans.Protocol = new FlowLib.Protocols.TransferNmdcProtocol(trans);
in the ActiveDownloadFilelistFromUser example.
Original comment by blomman84
on 16 Aug 2008 at 8:16
This issue should now be fixed in latest SVN version.
Can you confirm this?
Original comment by blomman84
on 16 Aug 2008 at 8:57
>What you should do is changing from:
>trans.Protocol = new FlowLib.Protocols.AdcProtocol(trans);
>to:
>trans.Protocol = new FlowLib.Protocols.TransferNmdcProtocol(trans);
OK, it works for russian nicks as expected.
Thanks for temporary solution.
> This issue should now be fixed in latest SVN version.
> Can you confirm this?
Sorry, I can't find the latest SVN version.
Could you send it to me, please?
Original comment by arctic....@gmail.com
on 18 Aug 2008 at 4:18
[deleted comment]
no. but you can find it here: http://code.google.com/p/flowlib/source/checkout
download a good svn (subversion) tool to use :)
Original comment by blomman84
on 20 Aug 2008 at 10:18
Original issue reported on code.google.com by
arctic....@gmail.com
on 10 Aug 2008 at 2:16