mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
fd61f69077
Main Changes: - Implement a socket transport layer for use by all code that needs to open some kind of "special" socket for network or IPC. - Extensions can register (and override) transports. - Implement ftruncate() on streams via the ioctl-alike option interface. - Implement mmap() on streams via the ioctl-alike option interface. - Implement generic crypto API via the ioctl-alike option interface. (currently only supports OpenSSL, but could support other SSL toolkits, and other crypto transport protocols). Impact: - tcp sockets can be overloaded by the openssl capable sockets at runtime, removing the link-time requirement for ssl:// and https:// sockets and streams. - checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since there are now a range of possible socket-type streams. Working towards: - socket servers using the new transport layer - mmap support under win32 - Cleaner code. # I will be updating the win32 build to add the new files shortly # after this commit.
51 lines
1.7 KiB
C
51 lines
1.7 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| PHP Version 4 |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1997-2003 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 2.02 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available at through the world-wide-web at |
|
|
| http://www.php.net/license/2_02.txt. |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Paul Panotzki - Bunyip Information Systems |
|
|
| Jim Winstead <jimw@php.net> |
|
|
| Wez Furlong |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
/* $Id$ */
|
|
|
|
/* Synced with php 3.0 revision 1.24 1999-06-18 [ssb] */
|
|
|
|
#ifndef FSOCK_H
|
|
#define FSOCK_H
|
|
|
|
#ifdef NETWARE
|
|
#ifdef NEW_LIBC
|
|
#include "sys/timeval.h"
|
|
#else
|
|
#include "netware/time_nw.h" /* For 'timeval' */
|
|
#endif
|
|
#endif
|
|
|
|
#include "file.h"
|
|
|
|
#include "php_network.h"
|
|
|
|
PHP_FUNCTION(fsockopen);
|
|
PHP_FUNCTION(pfsockopen);
|
|
|
|
/*
|
|
* Local variables:
|
|
* tab-width: 4
|
|
* c-basic-offset: 4
|
|
* End:
|
|
* vim: sw=4 ts=4
|
|
*/
|
|
#endif /* FSOCK_H */
|