Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove sleep workaround, and fix the actual win32 memory leak which | Jason Greene | 2002-07-07 | 1 | -7/+21 |
| | | | | | | | | | was occurring in the error reporting system. The reason why sleepex appeared to be working was because it suppressed EWOULDBLOCK errors in the example (which was non-blocking) @Fix win32 memory leak in /ext/sockets that would occur on any error condition @Fix host resolution error messages on win32 | ||||
* | - Fix proto. | Markus Fischer | 2002-06-25 | 1 | -2/+2 |
| | |||||
* | workaround for a win32 memleak | Harald Radi | 2002-06-15 | 1 | -0/+1 |
| | | | | | | # this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO | ||||
* | workaround for a win32 memleak | Harald Radi | 2002-06-15 | 1 | -1/+2 |
| | | | | | | # this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO | ||||
* | As far as I can tell, the AC_CHECK_MEMBER could not succeed, | Sascha Schumann | 2002-05-12 | 1 | -5/+10 |
| | | | | | | | | | | because it does not include <sys/socket.h> which is necessary for the definition of struct msghdr. This include file is not part of ac_includes_default. Regardless, AC_CHECK_MEMBER is a autoconf-2.5x macro and thus we expand it here for 2.13 compatibility. | ||||
* | Fix build on IRIX for both mips and gcc | Jason Greene | 2002-05-12 | 2 | -6/+17 |
| | |||||
* | Fix overflow | Jason Greene | 2002-05-08 | 1 | -1/+1 |
| | |||||
* | Fix 10830, and 17074 | Jason Greene | 2002-05-07 | 1 | -1/+1 |
| | | | | | FreeBSD requires the exact length of the socket type | ||||
* | socket_write() should just use the standard socket error macro so that ↵ | Jason Greene | 2002-05-02 | 1 | -2/+1 |
| | | | | errors will be consistent if the macro ever changes | ||||
* | - Update protos for socket_read() and socket_write(). | Markus Fischer | 2002-05-01 | 1 | -3/+3 |
| | | | | | - Set last_error in socket_write(). | ||||
* | - Update protos for getpeer/getsock-name. | Markus Fischer | 2002-05-01 | 1 | -2/+2 |
| | |||||
* | Fix BYREF_FORCE that was not being read | Jason Greene | 2002-05-01 | 1 | -2/+2 |
| | | | | | Fix error message | ||||
* | - Rename setopt and getopt to set_option and get_option, provide alias. | Markus Fischer | 2002-05-01 | 2 | -8/+13 |
| | |||||
* | - Fix couple of problems with socket_create_pair(): | Markus Fischer | 2002-05-01 | 1 | -8/+12 |
| | | | | | | | | | | - Force fourth argument to be passed by reference - Since the argument is modified there is no need to force it to be an array since it's destroyed anyway - Only modify the argument if socketpair() was successfully - Fix string modified for error message message - Set global last_error when socketpair() fails | ||||
* | - Add SOMAXCONN constant. | Markus Fischer | 2002-05-01 | 1 | -0/+1 |
| | |||||
* | - WS fixes | Markus Fischer | 2002-05-01 | 1 | -9/+9 |
| | |||||
* | Changed socket_select to force reference copy, the older code would modify ↵ | Jason Greene | 2002-05-01 | 1 | -1/+5 |
| | | | | | | | | | | | | | all references @Fixed a bug in socket_select() that could cause unexpected behavior when using a statement @ like $w=$e=array($sock); @This change unfortunately prevents the use of constant values(NULL) for the socket array paramaters. @Instead use a temporary variable or an expression with the leftmost member being a temporary variable. @ ex. socket_select($w, $r, $e=NULL, 10); Also fix small memory leak. | ||||
* | - Forgot to update proto | Markus Fischer | 2002-04-30 | 1 | -1/+1 |
| | |||||
* | - Allow resetting the module global last_error too. | Markus Fischer | 2002-04-30 | 1 | -6/+9 |
| | |||||
* | - Fix WS and CS a bit | Markus Fischer | 2002-04-29 | 1 | -107/+108 |
| | |||||
* | - Store last errno in the module global 'last_error' implicitely | Markus Fischer | 2002-04-29 | 2 | -21/+50 |
| | | | | | | | | | | - 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. | ||||
* | extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed | Sascha Schumann | 2002-03-12 | 2 | -8/+1 |
| | |||||
* | Fix WS | Jason Greene | 2002-03-11 | 1 | -28/+28 |
| | |||||
* | Fix build on win32 | Jason Greene | 2002-03-09 | 1 | -6/+5 |
| | |||||
* | Fixed bug where NULL specified in sec was not waiting infinately as it should | Jason Greene | 2002-03-09 | 1 | -15/+38 |
| | | | | | | | Fixed bug where socket_select was not producing an error message on error Fixed bug where -1 was getting returned instead of FALSE in socket_recv(), socket_send(), socket_sendto(), and socket_select() | ||||
* | Sockets Rework Patch 3 of 3 | Jason Greene | 2002-03-06 | 2 | -191/+67 |
| | | | | | | | 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 2 | Jason Greene | 2002-03-06 | 2 | -17/+90 |
| | | | | | | | | | | | 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 : ) | ||||
* | Style Improvement | Jason Greene | 2002-03-05 | 1 | -2/+1 |
| | |||||
* | Style mismatch: Jon's catch | Jason Greene | 2002-03-04 | 1 | -1/+1 |
| | |||||
* | Patch 1 of 3 (2 in 3 still in progress) of sockets rework | Jason Greene | 2002-03-04 | 1 | -53/+51 |
| | | | | | | | | | | | | Abstracted string -> ipv4 value conversion which unifies all functions Standardized Host Lookups Fixed Broken host error values Fixed error detection in sendmsg Added some safety struct zeroing Modified bind to consitentlyy use sockaddr_storage(not just for AF_UNIX) #Note this could potentially break the build on other platforms, as I have #not tested them yet (Will soon though) | ||||
* | Fix parse string | Jason Greene | 2002-02-15 | 1 | -1/+1 |
| | | | | | (Since arg6 is initialized at null this still catches the wrong param condition) | ||||
* | Fixing release and debug build on Win32 | Frank M. Kromann | 2002-02-13 | 1 | -3/+2 |
| | |||||
* | Use socklen_t (instead of int) where appropriate. | Jon Parise | 2002-01-27 | 1 | -6/+7 |
| | |||||
* | Because php_network.h includes <sys/socket.h>, it must be included after | Jon Parise | 2002-01-27 | 1 | -2/+1 |
| | | | | | | | _XPG4_2 is defined. This fixes the build under Solaris 8. | ||||
* | - Correct some protos. | Markus Fischer | 2002-01-09 | 1 | -3/+3 |
| | |||||
* | Changed proto via Georg Richter's request. | Sterling Hughes | 2002-01-08 | 1 | -1/+1 |
| | |||||
* | Added some consts for arguments in network.c declarations. Moved | Stig Venaas | 2002-01-06 | 2 | -5/+1 |
| | | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage | ||||
* | Add myself as a maintainer | Jason Greene | 2001-12-14 | 2 | -2/+2 |
| | |||||
* | Update headers. | Sebastian Bergmann | 2001-12-11 | 4 | -8/+8 |
| | |||||
* | proto fix | Hartmut Holzgraefe | 2001-12-06 | 1 | -1/+1 |
| | |||||
* | Fix broken format string in socket_recv -> zend_parse_parameters | Jason Greene | 2001-12-06 | 1 | -48/+101 |
| | | | | | | Rewrote socket_setopt and socket_getopt to be cleaner @Added support for SO_RCVTIMEO and SO_SNDTIMEO to ext/sockets (Jason) | ||||
* | Unified the configure messages. | foobar | 2001-11-30 | 1 | -1/+2 |
| | |||||
* | i'm sure i had this compile before;-) | Thies C. Arntzen | 2001-11-29 | 1 | -1/+2 |
| | |||||
* | fix a crash in socket_connect (if hostname was not resolvable) | Thies C. Arntzen | 2001-11-29 | 1 | -10/+13 |
| | | | | | | initialize max_fd in various fdset function fix error checking in _read and _write | ||||
* | Unified error/warning messages. | Markus Fischer | 2001-11-12 | 1 | -46/+46 |
| | |||||
* | WS | Markus Fischer | 2001-11-12 | 1 | -1/+1 |
| | |||||
* | Fix #14020 and some minor leaks. | Markus Fischer | 2001-11-12 | 1 | -1/+7 |
| | |||||
* | Include <sys/socket.h> for 'struct sockaddr'. | Jon Parise | 2001-11-06 | 1 | -1/+3 |
| | | | | | # This fixes my FreeBSD build. | ||||
* | Remove prototype warnings under linux. | Markus Fischer | 2001-11-01 | 1 | -0/+7 |
| | |||||
* | nuke remaining warnings | Daniel Beulshausen | 2001-11-01 | 3 | -10/+11 |
| |