#include opcapi.h
int opcif_get_pipe(
int interface_id, /* in */
int pipefd /* out */
);
Parameters
interface_id
pipefd
Description
A program reading from several input files needs the pipe file
descriptor of its interface input queue. This descriptor is then
used as part of the parameters to select(2)
or
fcntl(2)
. The function opcif_get_pipe()
returns this value.
For convenience reasons, an application that reads only from the
HPOM interface can specify OPCIF_READ_WAIT
in the
opcif_open()
call.
Return Values
OPC_ERR_OK
OPC_ERR_CANT_INIT
OPC_ERR_INVALID_OUTPARAM
pipefd
is NULL
OPC_ERR_INVALID_INTERFACE_ID
Versions
HPOM Windows A.07.50 and later
See Also