Changes between Version 78 and Version 79 of Clojure Client Tutorial
- Timestamp:
- Aug 25, 2011 12:08:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Clojure Client Tutorial
v78 v79 213 213 214 214 === Defining New Commands === 215 Now say you want to define a function on the fly to send an op to the server, this can be done with either "send-and-forget", "send-and-get", "send-and-get-later", and "send-and-watch". These functions provide a human-readable interface to protocol zero by mapping all of the op codes to keywords. Here is the full list of keyword arguments subject to change).215 Now say you want to define a function on the fly to send an op to the server, this can be done with either "send-and-forget", "send-and-get", "send-and-get-later", and "send-and-watch". These functions provide a human-readable interface to protocol zero by mapping all of the op codes to keywords. Here is the full list of keyword arguments (subject to change). 216 216 217 217 * :move-indefinitely --> "mi" … … 465 465 client.core=> (future-done? items) 466 466 true 467 client.core=> @items 467 client.core=> @items ; dereference the future 468 468 {"quagent_item_gold" ([375.085327 56.309933 1.374918] ... (output truncated) 469 469 client.core=> (pp)