Abstract interface class that is to be implemented by some application.
More...
#include </home/werner/origo/vish/ocean/streams/VSocketAction.hpp>
List of all members.
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 bool removeConnection (socket_t socket, const RefPtr< Receiver > &Obj)
-
virtual ~VSocketAction ()
- Destructor.
Detailed Description
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.
- Examples:
-
WebVish.cpp.
Member Function Documentation
bool Wizt::VSocketAction::addConnection |
( |
socket_t |
socket, |
|
|
const string & |
url, |
|
|
const RefPtr< Receiver > & |
Obj |
|
) |
| [virtual] |
Register a callback functor for data available on the given socket.
- Parameters:
-
Obj | The receiver object that provides the callback functions, will be stored in the implementation of the socket actions. |
The documentation for this class was generated from the following files:
- ocean/streams/VSocketAction.hpp
- ocean/streams/VSocketAction.cpp