A.5 IPv6 Addresses


31.5 ioctl Function

With STREAMS, we again encounter the ioctl function that was described in Chapter 17.

#include <stropts.h>

int ioctl(int fd , int request , ... /* void * arg */ ) ;

Returns: 0 if OK, “1 on error

The only change from the function prototype shown in Section 17.2 is the headers that must be included when dealing with STREAMS.

There are about 30 requests that affect a stream head. Each request begins with I_ and they are normally documented on the streamio man page.



UNIX Network Programming Volume 1, Third Edition
Unix Network Programming, Volume 1: The Sockets Networking API (3rd Edition)
ISBN: 0131411551
EAN: 2147483647
Year: 2003
Pages: 441

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net