Changes between Version 1 and Version 2 of IpaacaQuickStart


Ignore:
Timestamp:
12/03/13 17:11:14 (6 years ago)
Author:
welberge
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IpaacaQuickStart

    v1 v2  
    44 
    55== Quickstart == 
    6 Start spread: 
     6Ipaaca requires that spread is running: 
    77{{{ 
    88spread -n localhost & 
    99}}} 
     10 
     11In the simplest (but often used) usecase, Ipaaca is used to submit some payload containing one or more strings from an outputbuffer in one program to the inputbuffer of another program.  
     12 
     13=== To do this on the sending side === 
     14Inititialization: 
     15{{{ 
     16Create an outputbuffer (may be reused later on) 
     17}}} 
     18 
     19Sending the message: 
     20{{{ 
     211. Create an messageiu 
     221. Set the category of the message iu 
     231. Set the payload of the message iu: this is a set of (key, item) pairs with key and item both strings 
     241. Add the IU to the outputbuffer 
     25}}} 
     26 
     27=== To do this on the receiving side === 
     28Initialization: 
     29{{{ 
     301. Create an inputbuffer that is registered for the ius your are sending 
     311. Register an handler that is registered for the category your are sending and IUEventType MESSAGE 
     32}}} 
     33 
     34Receiving the message: 
     35{{{ 
     361. The handler is called whenever a message iu from the sender arrives. 
     37}}}