4. Quickstart

Contents:

For some people, the easiest and quickest way to understand something new is to get started with some short and sweet sample code they can read and modify. If you are like this, this chapter is for you!

Each of the next five sections show some essential code examples for the most important features of links and nodes:

  1. an example how to start the LN manager and manage interdependent processes with it.

  2. an example how to let processes communicate via publish/subscribe and topics.

  3. an example how to integrate LN services, which are similar to remote procedure call into a program.

They assume that you have read the Introduction, specifically the sections named “Overview on the functions provided by Links and Nodes” and “Main components of Links and Nodes Applications”, and have a ready installed system, as described in the chapter “Getting Started”. All three are written in Python; we assume that you know how to create, edit and run python scripts. If you need an explanation for some specific term, you can look it up in the Glossary.

As mentioned, the examples show the necessary code, but do not try to explain all of the underlying magic. For some more explanation of the concepts which are used here, you can then go to the next chapter, the Tutorials.