|
|
|
|
|
pong_handler(message,
server,
peer)
Callback for PONG messages.
Refresh the k-bucket information for the given peer. |
source code
|
|
|
|
|
chat_handler(message,
server,
peer)
Callback for CHAT messages. Congress makes no attempt to encrypt or
secure the message from eavesdropping, and leaves any implementation of
chat message security to the developer. |
source code
|
|
|
handle_rpc_get(message,
server,
peer)
Callback for GET messages.
If we have the value, send it back to the peer.
If we don't, build a list of alpha closest peers and send it back to the
peer. |
source code
|
|
|
|
|
handle_rpc_get_reply(message,
server,
peer)
Callback for GET replies.
If we get the value back in the message, run value_check.
If we get a list of peers, bootstrap them and request the same
value, but only if we don't have the value. |
source code
|
|
|
|
|
|
|
|