Skip to content
CinderBlock implementation of the Noam Protocol client
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples/MirrorWorld
src
verification
.gitignore
.gitmodules
README.md
TODO.md
cinderblock.png
cinderblock.xml

README.md

Cinder-NoamProtocol

Cinder-NoamProtocol is an implementation of IDEO's Noam protocol which deals in endpoint discovery and messaging.

USAGE

This simple example creates a guest, listens for and logs vultureKey messages and when a key is pressed within the application, sends a message with the key code.

void SomeApp::setup() {
    mLemma = Lemma::create("buzzard");
    mLemma->connectMessageEventHandler("vultureKeys", [](const std::string& eventName, const std::string& eventValue) {
        // eventValue could contain a bool, double, float, int, stringified JSON or just a string
        console() << eventName << " - " << fromString<int>(eventValue) << std::endl;
    });
    mLemma->begin();
}

void SomeApp::keyDown(KeyEvent event) {
    mLemma->sendMessage("buzzardKeys", event.getCode());
}

REQUIREMENTS

Cinder-NoamProtocol builds on top of Stephen Schieberl's great Cinder-Asio CinderBlock and more specifically, currently requires the dev branch. The block has only been tested with the dev branch of the Cinder repository on OS X Mavericks.

You can’t perform that action at this time.