14.06.2014 Views

Communication Paradigms - Connect

Communication Paradigms - Connect

Communication Paradigms - Connect

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Algorithm<br />

upon receive publish(event e) from node x<br />

matchlist := match(e, subscriptions)<br />

send notify(e) to matchlist;<br />

fwdlist := match(e, routing);<br />

send publish(e) to fwdlist - x;<br />

upon receive subscribe(subscription s) from node x<br />

if x is client then<br />

add x to subscriptions;<br />

else add(x, s) to routing;<br />

send subscribe(s) to neighbours - x;<br />

Adv. Dist. Systems G. Blair/ F. Taiani 45

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!