HP OpenVMS Systemsask the wizard |
The Question is: Hi Wizard, I have ported a UNIX socket application to OVMS platform using OVMS V6.2 and C compiler 5.5-003. Unfortunatly I am finding out (Painfully) that the the ioctl() call is not available. Also I have found out that the sys$qiow should be used. My question is how do I call sys$qiow using a socket that was created via a socket and bind call? In other words can I call mix sys$qiow() and normal socket calls? Thanks in advance Bahram Djavidan ZING/SOFT GmbH Berlin The Answer is :
The ioctl call is the UNIX version of the OpenVMS sys$qio call -- it is
how a C program communicates directly with a device driver on a UNIX
system.
Mixing ioctl and sockets with sys$qio calls is not an approach that the
OpenVMS Wizard would generally recommend -- mixing is possible, see the
decc$get_sdc call for the routine necessary to convert from a socket to
an OpenVMS I/O channel.
Various ioctl calls are available with OpenVMS V7.0 and later.
For information on socket programming, as well as using the sys$qio
call with TCP/IP Services, please see:
http://www.openvms.digital.com:8000/72final/6529/6529profile.html
|