summaryrefslogtreecommitdiff
path: root/main/php_network.h
Commit message (Collapse)AuthorAgeFilesLines
* MFH: Fix for Bug #24189: possibly unsafe select(2) usage.Wez Furlong2004-09-281-0/+98
|
* wrap all PHPAPI prototypes into BEGIN_EXTERN_C/END_EXTERN_C blocksHartmut Holzgraefe2004-02-201-1/+6
| | | | | (else they won't be usable from C++ extensions)
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* Counteract brain-death in Apache headersWez Furlong2003-12-181-0/+3
| | | | | | (they #define strtoul to something that will break compilation, and it successfully breaks the win32 IPv6 headers)
* fix ipv6 stuff under vc6Wez Furlong2003-12-061-5/+5
|
* Detect and enable IPv6 support under win32.Wez Furlong2003-12-061-1/+6
| | | | | | The ws2tcpip.h header links to IPv6 functions dynamically and the generated binary will run on win98 and later.
* Export these so that ftp extension can be build as shared ext.Wez Furlong2003-12-021-2/+2
|
* Add stream_socket_sendto and stream_socket_recvfrom which work very muchWez Furlong2003-11-291-0/+12
| | | | | like sendto() and recvfrom() syscalls.
* Win32 build fixes for opensslEdin Kadribasic2003-06-151-1/+1
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Tidy up stupid signed/unsigned issues with win32 by introducing a ↵Wez Furlong2003-02-281-8/+15
| | | | php_socket_t typedef.
* New user-space functions:Wez Furlong2003-02-281-5/+27
| | | | | | | | | | | . stream_socket_client() - similar to fsockopen(), but more powerful. . stream_socket_server() - Creates a server socket. . stream_socket_accept() - Accept a client connection. . stream_socket_get_name() - Get local or remote name of socket. Tidy up some leaks and debug printfs. Move more streams functions into streamsfuncs.c and streamsfuncs.h.
* - No need to include the ssl headers elsewhere but in ext/opensslfoobar2003-02-281-4/+0
| | | | | # ext/ftp doesn't use streams yet so it needs to include them.
* Another big commit (tm).Wez Furlong2003-02-271-17/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* ws fixes + missing $Id$ tags, headers addedfoobar2003-02-191-0/+1
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Fix for #19508 by poleson@verio.net.Wez Furlong2002-10-291-1/+6
|
* Revert to 1.34.Sebastian Bergmann2002-10-141-18/+18
|
* Whitespace fixes.Sebastian Bergmann2002-10-141-18/+18
|
* Fix Win32 build.Sebastian Bergmann2002-10-141-3/+0
|
* A much better probable fix for #16114.Wez Furlong2002-10-131-0/+11
|
* (php_socket_errno) win32 errno compatible macro.Wez Furlong2002-10-131-2/+7
| | | | | | (php_socket_strerror) win32 compatible strerror replacement. Add an E_NOTICE when a socket write fails.
* EOF related fixes.Wez Furlong2002-10-051-1/+0
|
* remove chunk size setting code (it's now in streams.c).Wez Furlong2002-09-281-4/+0
| | | | | Move timeout setting code.
* Implement persistent streams. (for pfsockopen).Wez Furlong2002-09-251-3/+3
| | | | | | Juggle some includes/definitions. Tidy up streams use in ext/standard/file.c
* Implement read buffering in streams.Wez Furlong2002-09-231-5/+0
| | | | | | | | | | | | Eliminate similar code from network.c. Implement fgets equivalent at the streams level, which can detect the mac, dos and unix line endings and handle them appropriately. The default behaviour is unix (and dos) line endings. An ini option to control this behaviour will follow. # Don't forget to make clean! # I've done some testing but would appreciate feedback from # people with scripts/extensions that seek around a lot.
* made new ssl activate function the default.Stefan Esser2002-09-121-3/+2
|
* Added possibility to reuse an old SSL session id.Stefan Esser2002-09-081-1/+2
| | | | | Ugly but needed for f.e.: debians ftpd-ssl
* Fix ZTS build.Sebastian Bergmann2002-08-251-1/+1
|
* Remove php_stream_sock_set_blocking and replace withWez Furlong2002-08-191-1/+0
| | | | | | | | | | | php_stream_set_option which can be used in a similar way as ioctl() to set options for streams. Current options include buffering and blocking support. o Buffer control is support for stdio based streams. o Blocking/non-blocking is supported for stdio and socket based streams.
* Switch streams socket abstraction to use a timeval structure instead of anJason Greene2002-07-221-2/+2
| | | | | | | | integer to allow subsecond timeouts. This supports the previous behavior of fsockopen() Fixes bug #16261
* Fix feof() on win32Jason Greene2002-07-191-0/+6
| | | | | Bug #18436
* @Impelemented timeout functionality, and fixed error handling of fsockopen() ↵Jason Greene2002-06-111-0/+5
| | | | | | | | | on win32 Also fixed error handling on unix (micropatch) Closes Bug #14740
* fix for bug #16168Wez Furlong2002-03-191-0/+2
|
* TSRMLS related work on streams, as discussed with Zeev.Wez Furlong2002-03-181-14/+14
| | | | | | # Should be the last "broad" commit for a while # Don't forget to make clean ; make
* Streams now make more use of the memory manager, so tracking downWez Furlong2002-03-171-4/+16
| | | | | | leaking streams should be easier. # I hate these big commits
* tidy up the headers (streams related)Wez Furlong2002-03-171-0/+10
|
* Fix for Bug #16121: make unix socket names binary safe.Wez Furlong2002-03-171-1/+1
| | | | | | # Could be applied to 4.2 branch, but I don't have a working copy, and # I don't think it's amazingly critical.
* This should help with some build problems/warnings under win32.Wez Furlong2002-03-161-0/+9
| | | | | | | Someone still needs to add the streams.c file to the MSVC project/workspace though (there are so many that I don't really know what I am doing :-).
* more *'sWez Furlong2002-03-161-8/+8
|
* New PHP streams...Wez Furlong2002-03-151-0/+54
|
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* Added php_sockaddr_size() in network.c (and the header file). This is usedStig Venaas2002-02-101-0/+1
| | | | | | in ftp.c to make sure connect() and bind() is called with size argument which is exactly the size of the relevant sockaddr_xx structure
* hostconnect now divides the timeout with no. of addresses. If a connectionStig Venaas2002-01-061-0/+1
| | | | | | attempt times out, it goes on to the next. Unless each timeout would be <5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
* Added some consts for arguments in network.c declarations. MovedStig Venaas2002-01-061-2/+10
| | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Fixed Andi's build problem.Wez Furlong2001-05-051-0/+4
|
* Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.cWez Furlong2001-05-051-0/+20
| | | | | | | | and rename to php_connect_nonb(). Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts should now work in php_hostconnect(). sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* - Remove track_vars - it is now always onZeev Suraski2000-09-051-1/+6
| | | | | | | - Make the various $HTTP_*_VARS[] arrays be defined always, even if they're empty - Fix Win32 build and warnings