#include <vtql_event.h>
Inheritance diagram for VTQL::Event_generic:
Public Methods | |
virtual | ~Event_generic () |
Event_generic (const std::string &file_name) | |
Open a connection to a server. More... | |
Event_generic (const sock::Socket_basic &file_descriptor) | |
Open a connection to a server (advanced). More... | |
virtual bool | Process (bool block) |
This method gets called the event moduls. More... |
Usually you do only care about make an instance of this class and pass it to the event moduls. The only non-trivial method in this class is the Event_generic::Process(bool) function which tries to spot the kind of event arriving and counts the lines of every event.
|
Open a connection to a server. As you may suspect, this connection has to be in event mode.
|
|
Open a connection to a server (advanced). If you have an file descriptor and it is connected to a server, you can use this constructor. As you may suspect, the connection has to be in event mode.
|
|
This method gets called the event moduls. This method handles the incomming data and sends anything in the output queue. It calls the callbacks, where the argument pair means (line number,line content), starting with line number 1.
Implements VTQL::Connect. |