summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
Commit message (Collapse)AuthorAgeFilesLines
* Bump yearXinchen Hui2014-01-031-1/+1
|
* - Fixed bug #66381 (__ss_family was changed on AIX 5.3)Felipe Pena2014-01-011-0/+4
|
* Revert "Fixed Bug #64340 (sockets tests failed) Patch by Reeze"Xinchen Hui2013-03-051-4/+0
| | | | | | build break, will only leave the test script fix first This reverts commit f2246f352fc01295c370728d68a9bcd2bb546652.
* Fixed Bug #64340 (sockets tests failed) Patch by ReezeXinchen Hui2013-03-031-0/+4
| | | | Add __APPLE_USE_RFC_3542 for OS X 10.7 because IPv6 options are incompatible with RFC 2292.
* Fix ext/sockets build with phpizeGustavo Lopes2013-02-241-0/+4
| | | | Fixes bug #64285
* Fix bug and hopefully build on WinSDK 6.1Gustavo Lopes2013-02-031-0/+3
| | | | | | | | | | | | | | | | | | | | | | | There build was failing on rmtools on the sockets extension for two reasons: 1. IPV6_TCLASS and IPV6_RECVTCLASS not being defined. These are probably recent additions to SDK. Windows 7 doesn't event seem to have complete support for IPV6_TCLASS, not accepting in WSASendMsg(). The parts that needed this constant were not guarded by #ifdefs. They are now. 2. The constants EWOULDBLOCK and EINPROGRESS not being defined. These were only defined in php_network.h, outside of the extension, and not all source files included this header. Nevertheless, a macro defined in php_sockets.h needed these constants. When this macro was used in files that did not include php_network.h, the compilation would fail. Surprisingly, the build did not fail when using the 7.1 Windows SDK (more likely, the CRT headers used in VC10), as somehow errno.h was being included through some other standard header. This would make the constant EWOULDBLOCK defined; however, it would be defined to the wrong value. In the winsock context, WSAEWOULDBLOCK should be used instead. Because we have difficulty using Windows-only constants in the code, we (re)define EWOULDBLOCK to WSAEWOULDBLOCK. This has the obvious disavantage we may miss problems like this again in the future.
* php_strerror in ext/sockets renamed in 5.5Gustavo Lopes2013-02-021-1/+1
|
* Merge branch 'sendrecvmsg_rebase_55' into PHP-5.5Gustavo Lopes2013-02-021-1/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * sendrecvmsg_rebase_55: (31 commits) Fix multicast.c not defining errno on Windows Fix non-Windows build send/recvmsg() support for Windows Remove some pre-vista code Revert "Payload of HOPLIMIT/TCLASS are 8-bit" Ensure memory is initialized Payload of HOPLIMIT/TCLASS are 8-bit Fix buf in string -> int conv. Build fixes; accept names for if_index Refactoring: move stuff to new conversions.c Support sticky IPV6_PKTINFO Rename some functions for consistency Destroy ancillary registry on shutdown Move some multicast stuff to multicast.c Fix mcast_ipv6_send test Check return of fstat() Fix build on Mac OS X Register extra MSG_* constants Add test for CMSG_RIGHTS Add test for CMSG_CREDENTIALS message ...
| * send/recvmsg() support for WindowsGustavo Lopes2013-02-021-1/+3
| |
| * Move some multicast stuff to multicast.cGustavo Lopes2013-02-021-0/+6
| |
| * Redactor to expose socket_import_file_descriptor()Gustavo Lopes2013-02-021-0/+1
| |
| * Wrap recvmsg() and sendmsg()Gustavo Lopes2013-02-021-0/+10
|/ | | | | | | | | | | | | | | | | | This introduces two new functions: int socket_recvmsg(resource $socket, array &$msghdr, int $flags) int socket_sendmsg(resource $socket, array $msghdr, int $flags) The arrays representing struct msghdr follow the native counterpart closely: structs are mapped to arrays, fields to array elements whose key is the name of the field without the prefix (e.g. "name" instead of "msg_name") and array are mapped to sequential numeric PHP arrays. Right now the only type of ancillary data supported is fot the level/type pair IPPROTO_IPV6/IPV6_PKTINFO. I also refactored out the name resolution functions and made sockets_strerror() a global function.
* Ignore warnings on EAGAIN/EWOULDBLOCK/EINPROGRESSGustavo Lopes2013-02-021-1/+3
| | | | See bug #63570
* Move & improve PHP_SOCKET_ERROR defGustavo Lopes2013-02-021-7/+7
|
* Move some declarations to sockets.cGustavo Lopes2013-02-021-35/+0
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Added socket_import_stream().Gustavo André dos Santos Lopes2011-03-221-4/+6
| | | | | | | - Fixed socket_strerror.phpt - Made php_set_sock_blocking return FAILURE on fcntl error. - Made socket_set_block()/socket_set_nonblock() emit warning on error.
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* Share the php_sockets.h headerMikko Koppanen2009-12-271-0/+2
| | | | | Share php_sockets_le_socket_name
* - #49464, fix buildPierre Joye2009-09-041-1/+3
|
* export le_socket from ext/socketsAntony Dovgal2009-08-311-0/+2
|
* Fix buildHannes Magnusson2009-01-241-1/+1
|
* MFH: Windows support for stream_socket_pair(), by moving the socketpair() ↵Kalle Sommer Nielsen2009-01-231-1/+8
| | | | implementation from ext/sockets to win32/
* MFH:Kalle Sommer Nielsen2009-01-011-1/+1
| | | | | | | | [DOC] Renable socket_create_pair() on Windows # ext/sockets have its own implementation of socketpair(), perhaps we should move it # to the core. This will make stream_socket_pair() available on Windows aswell
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* remove unused PHP_EXTNAME_API macros.Nuno Lopes2008-01-031-2/+0
| | | | | #in preparation for the gcc 4 visibility patch
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH:- Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ)Jani Taskinen2007-07-221-1/+4
|
* Remove pointless RINITIlia Alshanetsky2007-05-191-1/+0
|
* Add missing ifdefs for shutdown()Hannes Magnusson2007-01-101-0/+2
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Nuke unused codefoobar2005-02-141-4/+0
|
* - 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?
* Remove all vector based functions for the following reasons:Jason Greene2003-08-161-17/+0
| | | | | | | | | | - This solves alot of platform compatibility problems - The possible security issue of allocating an incredibly large vector pool is prevented - They are of little to no benefit in a high level language - 99% of all things done with these functions can be done using sendto/recvfrom
* rename SOCKET to PHP_SOCKET to avoid conflicts with MonoSterling Hughes2003-06-171-2/+4
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Fixed compiler warnings.Ilia Alshanetsky2003-05-281-0/+2
|
* CS cleanup + NS protection for some functions (used only in sockets.c btw)foobar2003-04-171-3/+4
|
* Better ifdef it out here toofoobar2003-04-051-0/+2
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Fix proto and #20137Sander Roobol2002-10-281-1/+1
|
* Fix thread safety issueJason Greene2002-09-301-1/+4
|
* - Rename setopt and getopt to set_option and get_option, provide alias.Markus Fischer2002-05-011-2/+2
|
* - Store last errno in the module global 'last_error' implicitelyMarkus Fischer2002-04-291-4/+6
| | | | | | | | | | - Set the global 'last_error' explicitely for functions which can't return an error withing a single socket context (socket_create and socket_select) - Modified socket_last_error() to return global modules last error if no socket resource is given - Added a couple of more E_WARNING messages in case something goes foobar so the user isn't left alone in the dark.
* Sockets Rework Patch 3 of 3Jason Greene2002-03-061-11/+0
| | | | | | | Nuked all fd code Rewrote socket_select to use arrays instead of the fd code (This has the side-effect of fixing quite a few bugs)
* Socket Rework Patch 2Jason Greene2002-03-061-0/+2
| | | | | | | | | | | Redesigned socket_recv() as outlined on php-dev Modified socket_last_error() to no longer clear the error Added socket_clear_error() Fixed socket_set_nonblock() Added socket_set_block() Fixed a proto Saved 1 byte of RAM : )