pentominos:pidiod
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pentominos:pidiod [2009/05/14 12:12] – jsc | pentominos:pidiod [2010/04/27 12:03] (current) – jsc | ||
---|---|---|---|
Line 35: | Line 35: | ||
==== Database maintenance ==== | ==== Database maintenance ==== | ||
- | Data maintenance | + | Data maintenance |
==== Protocol ==== | ==== Protocol ==== | ||
- | Format is as follow: ("< | + | Format is as follow: ("< |
Example: | Example: | ||
< | < | ||
Send: | Send: | ||
- | | + | |
- | "id1: <an id>\r\n" | + | "id1: < |
- | "id2: <another id>\r\n" | + | "id2: <another id> |
- | " | + | " |
- | "ttl: <a ttl>\r\n" | + | "ttl: < |
- | "\r\n" | + | " |
Answer (on success): | Answer (on success): | ||
- | "OK\r\n" | + | "status: |
+ | "msg: <STATUS MSG> | ||
+ | "\n" | ||
</ | </ | ||
- | Ie. every line terminated by "\r\n" and each parameter takes an argument and has its own line. The request is terminated by "\r\n". NOTE! Similar to input parameters an answer can to be a list. | + | Ie. every line terminated by " |
=== (" | === (" | ||
- | Put IDs (Genuine or Pseudo) on location with ttl. The server detects type of IDs. | + | Put IDs (Genuine or Pseudo) on location with ttl. |
- | === (" | + | === (" |
Get list of IDs (Genuine IDs) mapped to location. | Get list of IDs (Genuine IDs) mapped to location. | ||
Line 72: | Line 73: | ||
Unmap Pseudo ID from a genuine ID. | Unmap Pseudo ID from a genuine ID. | ||
- | === (" | + | === (" |
- | Lookup of ID mapped to id. | + | Lookup of ID mapped to id and its type (of the mapped to id). |
+ | |||
+ | |||
+ | ===== TODO ===== | ||
+ | |||
+ | ==== Next Version ==== | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
+ | * {{: | ||
- | === (" | + | ==== Current Version ==== |
- | Get type of ID. | + |
pentominos/pidiod.txt · Last modified: 2010/04/27 12:03 by jsc