Re: Diff. between ioctl and fcntl
Re: Diff. between ioctl and fcntl
- Subject: Re: Diff. between ioctl and fcntl
- From: Mike Cohen <email@hidden>
- Date: Wed, 21 Aug 2002 11:20:04 -0400
At 5:56 PM +0530 8/21/02, Pranav Kumar Sahu wrote:
I have a blocking socket. When i am trying to make it nonblocking by
using ioctl it works. but when i am trying with
fcntl(socket,F_SETFD, O_NONBLOCK);
It does not make it nonblocking. Is here something i am doing wrong
? Really want to know diff. between these function. Can anyone give a brief
description bout it.
They're very different functions. ioctl is for manipulating the
device or file itself; fcntl is for manipulating the file descriptor,
read/write mode, file locking, etc. In the terminal you can type 'man
ioctl' or 'man fcntl' for information on the usage of those functions.
--
[ Mike Cohen |
http://www.macmegasite.com/ ]
[ email@hidden |
http://www.worldbeatplanet.com/ ]
[ email@hidden |
http://www.mc-development.com/ ]
You can blow out a candle, but you can't blow out a fire. Once the flame
begins to catch, the wind will blow it higher. - Peter Gabriel, "Biko"
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.