MWFORWARD

Section: MidWay Programmer's Manual (3C)
Updated: DATE
Index Return to Main Contents
 

NAME

mwforward - MidWay service calls  

SYNOPSIS

#include <MidWay.h>

int mwforward(char * svcname, char * data, int len, int flags);  

DESCRIPTION

This is used by service routines only. It enables the service routine to forward the request to another service. Note that the request never return back to the service routine but is returned directly back to the client from the next service handler. That means of course that mwreply() and mwforward() are mutually exclusive.

This is often used to make a pipeline, where different services handle separate parts of the request.

The only flags legal is MWNOBLOCK.

 

RETURN VALUES

0 on success else -error.

 

ERRORS

ENOENT
There are no service with servicename available.
ENOTCONN
The calling process has not performed a successful mwattach() and is thus not attach to a running system.
EINVAL
flags has a undefined flag set.
EINTR
The subroutine was interrupted by a signal. (Actually one of the underlying msgrcv() or select() system calls were.)
ENOBUFS
We are out of MidWays shared memory buffers, see mwd(1).
 
EAGAIN
The call would block and MWNOBLOCK flags was set.

 

WARNINGS

 

EXAMPLES

 

BUGS

 

SEE ALSO

mwacall(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