[ Previous | Next | Table of Contents | Index | Library Home |
Legal |
Search ]
Technical Reference: Communications, Volume 2
Gets the next priority message
off a stream.
#include <stropts.h>
int getpmsg (fd, ctlptr, dataptr, bandp, flags)
int fd;
struct strbuf * ctlptr;
struct strbuf * dataptr;
int * bandp;
int * flags;
The getpmsg system
call is identical to the getmsg system
call, except that the message priority can be
specified.
fd
| Specifies a file descriptor referencing an open stream.
|
ctlptr
| Holds the control part of the message.
|
dataptr
| Holds the data part of the message.
|
bandp
| Specifies the priority band of the message. If the value of the
bandp parameter is set to 0, then the priority band is not
limited.
|
flags
| Indicates the type of message priority to be retrieved. Acceptable
values are:
- MSG_ANY
- Process the next message of any type.
- MSG_BAND
- Process the next message only if it is of the specified priority
band.
- MSG_HIPRI
- Process the next message only if it is a priority message.
If the value of the
flags parameter is MSG_ANY or MSG_HIPRI, then
the bandp parameter must be set to 0.
|
This system call is part of the
STREAMS Kernel Extensions.
The poll subroutine, read subroutine, write subroutine.
The getmsg system call, putmsg system call, putpmsg system call.
List of Streams
Programming References and STREAMS Overview in
AIX 5L Version 5.1 Communications Programming Concepts, and
X/OPEN Common Application Environment (CAE) Specification: System
Interfaces and Headers, Issue 5 (2/97).
[ Previous | Next | Table of Contents | Index |
Library Home |
Legal |
Search ]