|RpcService(3I)||InterViews Reference Manual||RpcService(3I)|
RpcService - support RPC between a service and its clients
An RpcService (actually, an instance of a derived class) creates a port and listens to it for connections from clients. When a client opens a connection, the RpcService will create a reader to handle RPC requests from the connection.
- virtual void createReader(int fd) = 0
- You must define this function in a derived class in order to start servicing RPC requests from a new client. Typically all you have to do is to construct a reader using the passed file descriptor and make the reader responsible for deleting itself when it notices that the connection has been closed by the client.
Dispatcher(3I), RpcReader(3I), RpcRegistry(3I)
|27 March 1991||InterViews|