-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the PING message type used? #31
Comments
@JustinDrake We don't use it anymore, but the |
I think it makes sense to keep. Do we still have code that actually implements the ping message? Use case: a protocol being able to test itself. The ping protocol on the other hand is for testing the remote host. |
@lgierth I think there's only code to handle incoming ping messages, but none implementing outgoing ping messages. |
@JustinDrake We should probably use this ping message for the routing table stuff discussed in the other issue |
The kadmelia specs says:
|
we use TCP connections which makes this unnecessary in our current implementation[ |
Is PING mentioned in the spec? |
The kademlia spec? Yes. |
No, our spec. |
I can see all the other message types (see
dht.proto
) being used (e.g.PUT_VALUE
,GET_VALUE
, etc.) butPING
seems unused. I'm writing a DHT crawler and thisPING
message seems quite useful to know who is online, so I'm considering writing a wrapper function for it (similar togetValueSingle
).The text was updated successfully, but these errors were encountered: