Skip to content

Instantly share code, notes, and snippets.

@Licenser
Last active August 29, 2015 13:56
Show Gist options
  • Save Licenser/9281468 to your computer and use it in GitHub Desktop.
Save Licenser/9281468 to your computer and use it in GitHub Desktop.

Requests

Lookup

Sends a lookup request.

|  1 |     1      | len(topic) |
| id | len(topic) |   topic    |
|  1 |    int     |   string   |

Responses

Discovered

Will be send in reply to a lookup request, with a list of hosts for this topic and each time a new hosts joins a topic once subscribed. The list always contains all the known hosts.

|  1  |     1      | len(topic) |    2   |     1      |   4   |  len(host1) | ... |     1      |   4   |  len(hostN) |
| id  | len(topic) |   topic    | #hosts | len(host1) | port1 |    host1    | ... | len(hostN) | portN |    host1    |
| 129 |    int     |   string   |   int  |    int     |  int  |   string    | ... |    int     |  int  |   string    |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment