BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::TCPConsoleSessionImpl Class Reference
Inheritance diagram for BeeeOn::TCPConsoleSessionImpl:
BeeeOn::ConsoleSessionImpl BeeeOn::Loggable

Public Types

typedef Poco::SharedPtr
< TCPConsoleSessionImpl
Ptr
 
- Public Types inherited from BeeeOn::ConsoleSessionImpl
typedef Poco::SharedPtr
< ConsoleSessionImpl
Ptr
 

Public Member Functions

 TCPConsoleSessionImpl (Poco::Net::Socket &socket)
 
std::string readUntil (const char c) override
 
std::string readBytes (const unsigned int length) override
 
void print (const std::string &text, bool newline=true) override
 
bool eof () override
 

Additional Inherited Members

- Protected Member Functions inherited from BeeeOn::ConsoleSessionImpl
std::string iosReadUntil (std::istream &in, const char c)
 
std::string iosReadBytes (std::istream &in, const unsigned int length)
 
void iosPrint (std::ostream &out, const std::string &text, bool newline)
 
- 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)
 
- 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)
 

Member Function Documentation

bool TCPConsoleSessionImpl::eof ( )
overridevirtual

Return true if the session cannot read any data anymore.

Reimplemented from BeeeOn::ConsoleSessionImpl.

void TCPConsoleSessionImpl::print ( const std::string &  text,
bool  newline = true 
)
overridevirtual

Print the given string. The newline can be optionally appended.

Implements BeeeOn::ConsoleSessionImpl.

string TCPConsoleSessionImpl::readBytes ( const unsigned int  length)
overridevirtual

Read the given amount of bytes.

Implements BeeeOn::ConsoleSessionImpl.

string TCPConsoleSessionImpl::readUntil ( const char  c)
overridevirtual

Read and return data until the character c is reached.

Implements BeeeOn::ConsoleSessionImpl.


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