senyor-seymour-butts / SemanticP2P

0 stars 0 forks source link

Peer Action Services #6

Open senyor-seymour-butts opened 8 years ago

senyor-seymour-butts commented 8 years ago

Create the service calls for the following actions:

Ping(msgID, senderInfo) //Sends Pong(msgID, senderInfo) //Listens for

Query(msgID, path, options, senderInfo) //Sends Response(msgID, knownPeers, content, senderInfo) //Listens for

msgID: UID used to link request/response pairs selfInfo: connection info which the sender would like to share path: any complete or partial domain path options: search algorithm options, such as the max/min number of peers to respond with knownPeers: a dict mapping partial/full query paths to peers content: website data