|
Project Information
Featured
Downloads
Links
|
An Erlang Port API shared library for Linux DocumentationDoxygen documentation is available here. InstallationThis package can be installed through Launchpad. Using the library
Example using MsgHandler PktHandler *ph = new PktHandler();
MsgHandler *mh = new MsgHandler(ph);
//Register a message type
// {echo, {Counter}}
mh->registerType(1, "echo", "l" );
//Wait for a message
Msg *m;
result = mh->rx(&m);
//Verify return code
if (result) {
//handle error
printf("ERROR, message: %s", mh->strerror());
// ...
}More examples are available in the documentation (see link above). Furthermore, there is another more flexible interface available (TermHandler) in the library. An example usage of this interface can be found in the project Erlang-DBus. |