BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Protected Member Functions
BeeeOn::TCPConsole Class Reference

#include <TCPConsole.h>

Inheritance diagram for BeeeOn::TCPConsole:
BeeeOn::Console BeeeOn::Loggable

Public Types

enum  { DEFAULT_PORT = 6000, DEFAULT_BACKLOG = 64, DEFAULT_TIMEOUT_MS = 500 }
 
- Public Types inherited from BeeeOn::Console
typedef Poco::SharedPtr< ConsolePtr
 

Public Member Functions

void setAddress (const std::string &address)
 
void setPort (int port)
 
void setSendTimeout (const Poco::Timespan &timeout)
 
void setRecvTimeout (const Poco::Timespan &timeout)
 
void setPollTimeout (const Poco::Timespan &timeout)
 
void setBacklog (int backlog)
 
void setSSLConfig (SSLServer::Ptr config)
 
void startListen ()
 
void close () override
 
- Public Member Functions inherited from BeeeOn::Console
void setEol (const char c)
 
char eol () const
 
void setSkipEol (const char c)
 
char skipEol () const
 
void setPrompt (const std::string &prompt)
 
std::string prompt () const
 

Protected Member Functions

ConsoleSessionImpl::Ptr openSession () override
 
void startListenUnlocked ()
 
- Protected Member Functions inherited from BeeeOn::Console
ConsoleSessionImpl::Ptr closedSession ()
 
- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 

Additional Inherited Members

- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Detailed Description

Console over TCP protocol. It allows to open multiple console connections in parallel if the upper layer can handle them.


The documentation for this class was generated from the following files: