Jump to content


ut2dc


  • Please log in to reply
9 replies to this topic

#1 mappy

mappy

  • Member
  • PipPip
  • 43 posts

Posted 13 October 2010 - 08:32 AM

ut2dc

About:
This is a uTorrent announce bot, written in C++. When a torrent finishes on the uTorrent WebUI, it tells everyone in main chat.
My flat uses an NMDC hub for chat and lan-only filesharing, but bandwidth limits mean we use a communal scheduling torrent server; so it's convenient to have the announces in our chat.

Download:
Public release v1: Mediafire
More recent versions available here
My Projects: jmDC | More

#2 Mek

Mek

    Slovak Translator

  • Support
  • 530 posts

Posted 13 October 2010 - 09:40 AM

Nice. But when your torrent transfer finishes, the files are not in your DC share immediately. I mean, there must be a filelist refresh and hashing, first. But how can you force a filelist refresh programatically? (you can do it by pressing ctrl+E manually).
ApexDC++ rulez!

#3 mappy

mappy

  • Member
  • PipPip
  • 43 posts

Posted 13 October 2010 - 07:36 PM

In my particular case, torrents are scheduled to run overnight, and they usually get hashed by the time anyone wakes up in the morning.
To properly refresh the filelist programatically, i guess support would have to be added to the plugin API.. either that, or perhaps just an autohotkey script (find apex, restore window, ctrl+e, minimise window)
My Projects: jmDC | More

#4 Guest_Toast_*

Guest_Toast_*
  • Guest

Posted 13 October 2010 - 10:59 PM

any plans on getting out of the old school nmdc protocol and onto adc aswell ?

#5 Lee

Lee

    Project Manager

  • Management
  • 3,231 posts

Posted 14 October 2010 - 08:17 PM

View PostToast, on 13 October 2010 - 10:59 PM, said:

any plans on getting out of the old school nmdc protocol and onto adc aswell ?
...and also getting the hubs upgraded to ADC :)
Stay up to date: Subscribe to our news feed

#6 mappy

mappy

  • Member
  • PipPip
  • 43 posts

Posted 15 October 2010 - 04:20 AM

Funny you should mention that actually

We've tried to migrate to ADC a couple of times, both for our flat hub and the campus hub, but ADC just seems less reliable.. ApexDC seems to not connect immediately to a fresh ADCH++ hub, and only connects intermittently to public ADC / ADCS hubs... DC++ seemed a bit more reliable at it last we tried, but Apex is substantially nicer : ) I havn't been able to isolate the problem, otherwise i'd submit a bug report.  I don't suppose this is a known problem? In the present, NMDC works well enough, but better unicode support would be very nice.
My Projects: jmDC | More

#7 Crise

Crise

    Developer

  • Management
  • 2,854 posts

Posted 15 October 2010 - 03:23 PM

View Postmappy, on 15 October 2010 - 04:20 AM, said:

Funny you should mention that actually

We've tried to migrate to ADC a couple of times, both for our flat hub and the campus hub, but ADC just seems less reliable.. ApexDC seems to not connect immediately to a fresh ADCH++ hub, and only connects intermittently to public ADC / ADCS hubs... DC++ seemed a bit more reliable at it last we tried, but Apex is substantially nicer : ) I havn't been able to isolate the problem, otherwise i'd submit a bug report.  I don't suppose this is a known problem? In the present, NMDC works well enough, but better unicode support would be very nice.

No, not a known issue, could you describe this more... since I am connecting to ADC hubs both encrypted and unencrypted without any issues.. adchpp and uhub.

So if you have any more details that would be big help, though I am unaware of any differences between ADC in DC++ and ADC in ApexDC++ that could create such issues (well aside from our default TLS setting, but that only matters for ADCS hubs and can be remedied by visit to settings). So your comment about difference between Apex and DC++ greatly interests me.
Crise
ApexDC++ - Lead Developer

Proud Affiliates of: TechGeeks Online, PeerWeb

#8 mappy

mappy

  • Member
  • PipPip
  • 43 posts

Posted 15 October 2010 - 10:44 PM

View PostCrise, on 15 October 2010 - 03:23 PM, said:

No, not a known issue, could you describe this more... since I am connecting to ADC hubs both encrypted and unencrypted without any issues.. adchpp and uhub.

So if you have any more details that would be big help, though I am unaware of any differences between ADC in DC++ and ADC in ApexDC++ that could create such issues (well aside from our default TLS setting, but that only matters for ADCS hubs and can be remedied by visit to settings). So your comment about difference between Apex and DC++ greatly interests me.
Hello Crise, you make a great client.

My comment about the difference between ApexDC++ and DC++ comes from trying to connect to DCDev, which only intermittently worked - which could be caused by a number of things, including DCDev's own intermittent uptime, or that it does use ADCS. So perhaps it was TLS related after all.

I got a fresh adchpp 2.52 from their website this morning. With the stock configuration files, running from an administrator account and with the binary unblocked in firewall, both my existing ApexDC++ and a clean DC++ recognise that a server is running, but don't seem to fully go through the ADC login process; [Image]

I got the uhub-0.3.2 source, and built with mingw (make -f GNUmakefile). When the binary runs, it spits out "WARN: backend error." every millisecond or so. The warning seems to originate from src\network\backend.c (145), despite not triggering the error on (91) about not finding a backend. I tried to build with cygwin, but i get an error telling me to use mingw instead. Perhaps this is a known issue with uhub, perhaps i'm building it incorrectly. So i try the most recent windows build from their build archive, which is 0.28. This one runs fine, without any fatal errors, but i get the same symptom as with adchpp-2.52: [Image] Both clients just sit there doing nothing. After a while, the connection times out, and they both reconnect.

I'm a little suspicious about this, so i look up the ADC client-hub protocol and find out the handshake order, and perform it manually with netcat; [Image] The server responds to my handshake, so it's at least mostly functional. Performing the same test with adchpp-2.52 gives me a similar result, as expected. But still, neither ApexDC++ or DC++ will finish a connection with either hubsoft.

Any suggestions would be appreciated Posted Image
Next step is to use wireshark, i guess.
My Projects: jmDC | More

#9 mappy

mappy

  • Member
  • PipPip
  • 43 posts

Posted 15 October 2010 - 10:51 PM

Silly me. Both uhub and adchpp work fine if i connect with adc://localhost:port instead of just localhost:port. Posted Image
Thanks for your time anyway...
My Projects: jmDC | More

#10 Guest_Toast_*

Guest_Toast_*
  • Guest

Posted 16 October 2010 - 10:28 AM

well if you need any help etc just pop into adcs://devpublic.adcportal.com:16591 you got all the adc developers there, incase you wanna give ADC another go

oh and you might wanna consider a proper developer page like launchpad or github or sourceforge for your project instead of a fileshare page like mediafire things have a tenancy to get lost at those


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users