zippy / ceptr

(a recomposable medium for distributed social computing) || (semantic self-describing protocol stacks)
http://ceptr.org
GNU General Public License v3.0
88 stars 17 forks source link

make carriers work #42

Closed zippy closed 8 years ago

zippy commented 8 years ago

This means adding a carrier symbol into signal envelopes (which is just the same as the body symbol) which is used for two things:

  1. for new signals, to pre-select which ones to run the semtrex matcher on based on the carrier of the expectation listener
  2. for responses, as an integrity check to make sure the response matches what you are actually expecting, and if it doesn't to just discard the response as invalid
zippy commented 8 years ago

still need the to add the code in to add_listener / deliver_signal to only match expectations for signals on the correct carriers

zippy commented 8 years ago

bae6d609d0 now checking carrier in test_expectation