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.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.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
The following protocols are available:
file: local files
tcp: TCP/IP client
tcpin: TCP/IP server
ser: serial port
stdin: standard input
stdout: standard output
name: name of the file, including the path
mode: mode (read, write)
address: if the computer possesses multiple network addresses, the one to listen on, default 0.0.0.0 (any)
address: if the computer possesses multiple network addresses, the one to connect to, default 0.0.0.0 (any)
device: serial port device name, system specific; either port or device must be given, device has priority if both are given.
port: serial port number, starting from 1, default 1; either port or device must be given, device has priority if both are given (note: on Linux, this feature requires libhal).
baud: baud rate, default 115200
stop: stop bits count (1 or 2), default 1
parity: parity type (none, even, odd), default none
fc: flow control type, (none, hard), default none
bits: number of bits per character, default 8
stdoutdo not take any parameter.