solarpowerlog trunk
/home/tobi/workspace/solarpowerlog/src/Connections/interfaces/IConnect.h File Reference
#include <string>
#include "configuration/ILogger.h"
#include <boost/thread.hpp>
#include "patterns/ICommand.h"
#include <errno.h>
Include dependency graph for IConnect.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IConnect

Defines

#define ICONN_TOKEN_RECEIVE_STRING   "ICON_RECEIVE_STRING"
#define ICONN_TOKEN_SEND_STRING   "ICON_SEND_STRING"
#define ICONN_TOKEN_TIMEOUT   "ICON_TIMEOUT"
#define ICONN_TOKEN_INTERBYTETIMEOUT   "ICON_INTERBYTE_TIMEOUT"

Detailed Description

Created on: May 16, 2009 Author: tobi

Definition in file IConnect.h.


Define Documentation

#define ICONN_TOKEN_INTERBYTETIMEOUT   "ICON_INTERBYTE_TIMEOUT"

Timeout specifier -- this (optional) parameter sets the timeout between two bytes. It is only honoured by connection methods that "act" serial like. One prominent example would be comms over serial line. (note: normally this is not needed to be specified -- it can be set by the configuration file or calculated at runtime out of the baudrate. ) Unit of the value by the token are ms.

Definition at line 72 of file IConnect.h.

#define ICONN_TOKEN_RECEIVE_STRING   "ICON_RECEIVE_STRING"

Receive-result of the Transaction (std::string) might be not present in case of error.

Definition at line 52 of file IConnect.h.

#define ICONN_TOKEN_SEND_STRING   "ICON_SEND_STRING"

(private token) Send this string over the connection This is used to communicate to the worker thread what it should send.

Definition at line 56 of file IConnect.h.

#define ICONN_TOKEN_TIMEOUT   "ICON_TIMEOUT"

Timeout modifier -- with this optional parameter the timeout parameter can be overridden from the config for the current operation. This allows fine-grade timeouts for any operation Note: If not specified, the implementation will either use a default value or retrieve a configuration value

Definition at line 64 of file IConnect.h.