GithubHelp home page GithubHelp logo

dhtplay's People

Contributors

allanlw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dhtplay's Issues

ValueError: Invalid SQL Statement

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/home/d33tah/workspace/dhtplay/lib/sql/thread.py", line 70, in run
    raise ValueError("Invalid SQL Statement - {0} ({1})".format(stmt, e))
ValueError: Invalid SQL Statement - (9, 'SELECT nodes.* FROM nodes INNER JOIN buckets ON\n                            nodes.bucket_id=buckets.id WHERE nodes.contact=?\n                            AND buckets.server_id=? LIMIT 1', (<lib.util.contactinfo.ContactInfo instance at 0x7fe176f4c9e0>, 1)) (Error binding parameter 0 - probably unsupported type.)

Possibly corrupted ping message?

Server Starting...
Server Started.
Sending ping to ('router.bittorrent.com', 6881)
Sending message to ('router.bittorrent.com', 6881) - {'y': 'q', 'q': 'ping', 't': '\x00\x01', 'a': {'id': <read-only buffer for 0x7f22e0ce1a30, size -1, offset 0 at 0x7f22e0ce1970>}, 'v': 'DP\x00\x01'}
Message sent to ('router.bittorrent.com', 6881)
From 67.215.246.10:6881:{'y': 'r', 'ip': '.e\xb8\xed\x1a\xe1', 'r': {'id': '2\xf5NisQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2g'}, 't': '\x00\x01'}
Node added to db (32f54e697351ff4aec29cdbaabf2fbe3467cc267)
Sending message to ('0.0.0.0', 6881) - {'y': 'q', 'q': 'refresh', 't': '\x00\x02', 'a': {'secret': '4@\xaa\xa1(-O\xae\x12T\xd6\xa0\xc0\x9fk\x12XG\xee\xf4'}, 'v': 'DP\x00\x01'}
Message sent to ('0.0.0.0', 6881)
Updating routing table...
Routing table updated.
Sending message to ('0.0.0.0', 6881) - {'y': 'q', 'q': 'refresh', 't': '\x00\x03', 'a': {'secret': 'nOq\xec\x93\xa2\xbf\xfbi\xce\xed\xd2-h\xe2\x19\xc6\xa7\x15\xd4'}, 'v': 'DP\x00\x01'}
Message sent to ('0.0.0.0', 6881)
Updating routing table...
Routing table updated.
Sending ping to ('67.215.246.10', 6881)
Sending message to ('67.215.246.10', 6881) - {'y': 'q', 'q': 'ping', 't': '\x00\x04', 'a': {'id': <read-only buffer for 0x7f22e0ce1c30, size -1, offset 0 at 0x7f22e0ce1930>}, 'v': 'DP\x00\x01'}
Message sent to ('67.215.246.10', 6881)
From 67.215.246.10:6881:{'y': 'r', 'ip': '.e\xb8\xed\x1a\xe1', 'r': {'id': '2\xf5NisQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2g'}, 't': '\x00\x04'}
Sending message to ('0.0.0.0', 6881) - {'y': 'q', 'q': 'refresh', 't': '\x00\x05', 'a': {'secret': '/O\xd009i\n\x07\x0f\xb2!3\xcf\xf1gt\xc5\xae\xcd\xbc'}, 'v': 'DP\x00\x01'}
Message sent to ('0.0.0.0', 6881)
Updating routing table...
Routing table updated.
Sending message to ('0.0.0.0', 6881) - {'y': 'q', 'q': 'refresh', 't': '\x00\x06', 'a': {'secret': '\xb0\x89\xda\x0f\x00\xad\x8a\xecc\n\x12ei\xa4\xdb\xc4\xbf\xeb\xf2\x82'}, 'v': 'DP\x00\x01'}
Message sent to ('0.0.0.0', 6881)
Updating routing table...
Routing table updated.
Sending message to ('0.0.0.0', 6881) - {'y': 'q', 'q': 'refresh', 't': '\x00\x07', 'a': {'secret': '\xae\x8e\xdcX,\xd6\x125d\xf7\x033OH\xe7\xd0\xb1\xfb\x19\x10'}, 'v': 'DP\x00\x01'}
Message sent to ('0.0.0.0', 6881)
Updating routing table...
Routing table updated.

Is this <read-only buffer for 0x7f22e0ce1a30, size -1, offset 0 at 0x7f22e0ce1970>} sent instead of valid ID?

Basic documentation is lacking

Hi again
Though I'm no newbie, I can't figure out how to use DHTplay.
Some basic documentation is required: a reference guide that explains what each menu item does, and what the contents of each dialogue box item means.
First, I thought "new server" would create a new DHT server on the local host. THen I thought it was a way to tell DHTplay to connect to an existing DHT node out there on the internet (this is my current theory!) Of the two IP address and two ports in the dialogue, I assume one is the external node's addr and port, and the other two... the external IP address and port of the local host (ie the public IP of my ADSL router?) or maybe the address and port on the local server itself that the program should bind to? Something else? :-)

It's one thing to write a little program for yourself that you know how to use, with dialog box names that remind you what the dialog box contents are. It's another to publish it so that other people can use it and maybe extend it into the P2P DHT browser that we all need. In general you should think

  1. Reference manual: A paragraph describing what each menu, menu item, dialog box, input field, table and table column's contents mean (this answers the question "what's this thing I can see?" for puzzled users)
  2. Tutorial: What are the basic steps a user should take when using the program? i see the installation guide, but once it's running it's a guessing game how to use it. This puts more people off, and makes the launch of the project a failure. Remember, most people only try out a piece of software once. Then they think "I couldn't get it to run" and never come back.

Oh, and it would be nice to have a brief one-line
0) What does this software do?

Thanks, and I hope these suggestions are useful to make your open source project a success!

M

Could you clarify?

@allanlw

After you make a server, you need to connect to the dht network by adding peers. From there, you can look around.

How would I do that?

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.