|
The Vish Visualization Shell 0.3
Vish
|
Abstract interface class that is to be implemented by some application. More...
#include <ocean/streams/VSocketAction.hpp>
Classes | |
| class | Connector |
| Functor object for callbacks when new clients connect to a server. More... | |
| class | Receiver |
| Functor object for callbacks when data are received on a socket. More... | |
Public Member Functions | |
| virtual bool | addConnection (socket_t socket, const string &url, const RefPtr< Receiver > &Obj) |
| Register a callback functor for data available on the given socket. | |
| virtual bool | listen (int port, const RefPtr< Connector > &Obj) |
| Register a callback functor for newly created clients that have connected to the given socket. | |
| virtual | ~VSocketAction () |
| Destructor. | |
Abstract interface class that is to be implemented by some application.
This is the type queried by some VSlot, though the actual storage within an object's parameter is VValue<VSocketAction>. This class is only referenced via a pointer to call the virtual functions that perform actions in the application.
|
virtual |
Register a callback functor for data available on the given socket.
| Obj | The receiver object that provides the callback functions, will be stored in the implementation of the socket actions. |