$search

Dashel

St├ęphane Magnenat (http://stephane.magnenat.net), Mobots group - Laboratory of Robotics Systems, EPFL, Lausanne (http://mobots.epfl.ch)
Sebastion Gerlach, Kenzan Technologies (http://www.kenzantech.com)
Antoine Beyeler (http://www.ab-ware.com), Laboratory of Intelligent Systems, EPFL, Lausanne (http://lis.epfl.ch)

Introduction

Dashel is a cross-platform data stream helper encapsulation library. It provides a unified access to TCP/UDP sockets, serial ports, console, and files streams. It also allows a server application to wait for any activity on any combination of these streams.

Dashel is licensed under a modified BSD license, which is a permissive open source license. Yet, if you find bugs or do some improvements, please let us know.

Usage

To use Dashel, you have to instanciate a Dashel::Hub. The Hub is your connection with the data streams. It is the place where you create, destroy, and synchronize them.

The example directory in Dashel distribution provides several working examples that you can read to learn to use Dashel.

Targets Naming

In Dashel, streams connect to targets. A target is a string that describes a file, a TCP/UDP address/port, or a serial port. This string consists of the type of the target, a colon, followed by a semicolon separated list of parameters. This list contains key-values pairs, with a predifined order such that keys can be omitted (but if a key is present, all subsequent entries must have an explicit key). Its general syntax is thus "protocol:[param1key=]param1value;...;[paramNkey=]paramNvalue".

The following protocols are available:

The file protocol accepts the following parameters, in this implicit order:

The tcp protocol accepts the following parameters, in this implicit order:

The tcpin protocol accepts the following parameters, in this implicit order:

The udp protocol accepts the following parameters, in this implicit order:

The ser protocol accepts the following parameters, in this implicit order:

Protocols stdin and stdout do not take any parameter.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


dashel
Author(s): St├ęphane Magnenat
autogenerated on Sat Mar 2 12:31:27 2013