HP OpenVMS Systems

ask the wizard
Content starts here

Blocking, IP sockets, and select?

» close window

The Question is:

Using TCPIP Services for OpenVMS Alpha v5.0A,
how can you make stdin "non-blocking" using
ioctl()?  I'd like to use select() to determine
when something is ready to be read on stdin.

The Answer is :

  The OpenVMS Wizard would prefer to use the $qio interface,
  and particularly the AST mechanism.
  Note: select() is only permitted to operate (at present) with
  sockets.  It does not operate across other channels.
  Alternatively, take a look at:
  Or, using TCPIP$INETDEF.H, specify ioctl() with FIONBIO.

answer written or last revised on ( 22-MAY-2000 )

» close window