|
L4Re - L4 Runtime Environment
|
Abstract server object to be used with L4::Server and L4::Basic_registry. More...
Inheritance diagram for L4::Server_object:
Collaboration diagram for L4::Server_object:Public Member Functions | |
| virtual int | dispatch (unsigned long rights, Ipc::Iostream &ios)=0 |
| The abstract handler for client requests to the object. More... | |
Abstract server object to be used with L4::Server and L4::Basic_registry.
This server object provides an abstract interface that is used by the L4::Registry_dispatcher model. You can derive subclasses from this interface and implement application specific server objects.
Definition at line 49 of file ipc_server.
|
pure virtual |
The abstract handler for client requests to the object.
| rights | The rights bits in the invoked capability. |
| ios | The Ipc::Iostream for reading the request and writing the reply. |
| -L4_ENOREPLY | Instructs the server loop to not send a reply. |
| <0 | Error, reply with error code. |
| >=0 | Success, reply with return value. |
This function must be implemented by application specific server objects. The implementation must unmarshall data from the stream (ios) and create a reply by marshalling to the stream (ios). For details about the IPC stream see IPC stream operators.
Implemented in L4::Server_object_x< Derived, IFACE, BASE >.