BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
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) |
|
overridevirtual |
Return true if the session cannot read any data anymore.
Reimplemented from BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Print the given string. The newline can be optionally appended.
Implements BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Read the given amount of bytes.
Implements BeeeOn::ConsoleSessionImpl.
|
overridevirtual |
Read and return data until the character c is reached.
Implements BeeeOn::ConsoleSessionImpl.