MWSERVICEREQUEST
Section: MidWay Programmer's Manual (3C)
Updated: DATE
Index
Return to Main Contents
NAME
mwservicerequest () - Gets a service request of the input queue and
executes the function for the service.
SYNOPSIS
#include <MidWay.h>
int mwservicerequest(int flags);
DESCRIPTION
This function is only legal if attached as a server.
For every time this is called it gets a service request of the IPC
message queue the server has to receive MidWay data on. It then lookup
the registered (with
mwprovide())
function that shall perform the service request.
If the next request is not a service request then it exits with a
propper return code.
RETURN VALUES
0 on success, otherwise a negative errno.
ERRORS
- EINTR
-
A signal was delivered to the program
while in msgrcv.
If you want to know which one, or to watch signals during execution of
service routines, install a signal handler.
- EAGAIN
-
flags
&
MWNOBLOCK
is true and now service calls are wainting on the message queue.
- ENOTCONN
-
Either
mwattach()
has not yet been called, or it failed, or attached as client only, or
mwdetach()
has been called.
ESHUTDOWN
The MidWay daemon
mwd(1)
has sent us an instruction to exit. We are required to do so.
- ENOENT
-
There are currently no service handles registered by
mwprovide().
WARNINGS
EXAMPLES
BUGS
SEE ALSO
mwMainLoop(3C)
STANDARDS
NONE
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- ERRORS
-
- WARNINGS
-
- EXAMPLES
-
- BUGS
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 11:18:50 GMT, October 24, 2000