Re: new ftp-module doesn't work at all (on solaris & Win32)
| From: | Sascha Schumann | Date: | Fri, 12 Nov 1999 22:49:10 +0000 |
| Subject: | Re: new ftp-module doesn't work at all (on solaris & Win32) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12425@lists.php.net to get a copy of this message | ||
On Fri, Nov 12, 1999 at 11:33:05PM +0100, Kristian Köhntopp wrote:
>
> Sascha Schumann wrote:
> > Are sockets terminals or files?
>
> A file descriptor is a "terminal", if the isatty()
> predicate returns true. It will then have line buffering
> by default, block buffering otherwise.
We should not rely on the default mode. Since it is not
defined whether sockets are terminals/files, we should set
the type of buffer always.
--
Regards,
Sascha Schumann
Consultant