Giter Club home page Giter Club logo

Comments (14)

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Yes, that's probably the Key parameter that I set to 1, I though that it was about the passKey/token but probably is the client identifier. I will review also Alan's implementation and I will fix those as well.

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

I edited my comment - I completely forgot I set that as the key value in the PHP file lol

I have added handling in my announce for this client exclusively now. Much easier server-side testing.

if ($_SERVER['HTTP_USER_AGENT'] == 'BitSwarm/2.4.0') {
	$keys = array(
		'downloaded' => true,
		'uploaded' => true,
		'info_hash' => true,
		'peer_id' => true,
		'port' => true,
		'no_peer_id' => false,
		'ip' => false,
		'numwant' => false,
		'event' => false,
		'left' => true,
		'compact' => false,
		'key' => 1,
	);
}

Excellent, I have been reviewing that project very well - a lot of support spec

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Nice! So does the new http tracker works as expected now?

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

Accurate stats in readings, no downloading though, so technically no its not working. Im adding code to Tracker.cs to report a 32bit hex back in key param, and see if it picks up. Im not sure if the seedbox(libtorrent) is blocking or what but it comes up as 1 choked peer and stays on there. Very odd.

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Yesterday, I was able to use the private torrent that you sent. It was downloading with 10Mbits/s.

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

Thats wonderful! I sent you a so-so torrent, its hardly the best as I realized later but thats awesome! So as it stands it works, maybe I'll work off my IP and try that way.

Client reports strange data back compared to the others.

Screenshot of data I get back:

https://gcdn.pbrd.co/images/4oDg4J6jJlYt.jpg

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Check this one. I will update the agent and version of bitswarm with similar way (also for the Key) and let me know if that works for you.

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

Maybe this will work for a basic key

var clientkey = new Random();
                    if (Regex.IsMatch(uri.Query, "token=", RegexOptions.IgnoreCase) || Regex.IsMatch(uri.Query, "passkey=", RegexOptions.IgnoreCase))
                        query += "&key=" + string.Format("{0:X7}", clientkey.Next(0x1000000));

I'll check that out

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

I get this error which I'm not sure if you should return

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'clientkey' at row 1d14:failure reason17:Cant insert peer.e

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

I'm in my table right now, the column is VARCHAR - 8 characters

I'll increase it to 50

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

For udp it's an Int32 but for http might be a string, not sure, there is no documentation

from bitswarm.

Wiilf avatar Wiilf commented on May 26, 2024

Client is working!! That is awesome :D

I'll download libtorrent project and see how it reports out to trackers these things

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Check another one here

CREATE TABLE `peers` (
...
`key` varchar(20) NOT NULL DEFAULT '',
...

from bitswarm.

SuRGeoNix avatar SuRGeoNix commented on May 26, 2024

Related libtorrent code here

from bitswarm.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.