summaryrefslogtreecommitdiff
path: root/ext/sockets
Commit message (Collapse)AuthorAgeFilesLines
* Remove sleep workaround, and fix the actual win32 memory leak whichJason Greene2002-07-071-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 Fischer2002-06-251-2/+2
|
* workaround for a win32 memleakHarald Radi2002-06-151-0/+1
| | | | | | # this definitely has to be revisited ! # maybe we should use winsock2 and overlapped IO
* workaround for a win32 memleakHarald Radi2002-06-151-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 Schumann2002-05-121-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 gccJason Greene2002-05-122-6/+17
|
* Fix overflowJason Greene2002-05-081-1/+1
|
* Fix 10830, and 17074Jason Greene2002-05-071-1/+1
| | | | | FreeBSD requires the exact length of the socket type
* socket_write() should just use the standard socket error macro so that ↵Jason Greene2002-05-021-2/+1
| | | | errors will be consistent if the macro ever changes
* - Update protos for socket_read() and socket_write().Markus Fischer2002-05-011-3/+3
| | | | | - Set last_error in socket_write().
* - Update protos for getpeer/getsock-name.Markus Fischer2002-05-011-2/+2
|
* Fix BYREF_FORCE that was not being readJason Greene2002-05-011-2/+2
| | | | | Fix error message
* - Rename setopt and getopt to set_option and get_option, provide alias.Markus Fischer2002-05-012-8/+13
|
* - Fix couple of problems with socket_create_pair():Markus Fischer2002-05-011-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 Fischer2002-05-011-0/+1
|
* - WS fixesMarkus Fischer2002-05-011-9/+9
|
* Changed socket_select to force reference copy, the older code would modify ↵Jason Greene2002-05-011-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 protoMarkus Fischer2002-04-301-1/+1
|
* - Allow resetting the module global last_error too.Markus Fischer2002-04-301-6/+9
|
* - Fix WS and CS a bitMarkus Fischer2002-04-291-107/+108
|
* - Store last errno in the module global 'last_error' implicitelyMarkus Fischer2002-04-292-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 confirmedSascha Schumann2002-03-122-8/+1
|
* Fix WSJason Greene2002-03-111-28/+28
|
* Fix build on win32Jason Greene2002-03-091-6/+5
|
* Fixed bug where NULL specified in sec was not waiting infinately as it shouldJason Greene2002-03-091-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 3Jason Greene2002-03-062-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 2Jason Greene2002-03-062-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 ImprovementJason Greene2002-03-051-2/+1
|
* Style mismatch: Jon's catchJason Greene2002-03-041-1/+1
|
* Patch 1 of 3 (2 in 3 still in progress) of sockets reworkJason Greene2002-03-041-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 stringJason Greene2002-02-151-1/+1
| | | | | (Since arg6 is initialized at null this still catches the wrong param condition)
* Fixing release and debug build on Win32Frank M. Kromann2002-02-131-3/+2
|
* Use socklen_t (instead of int) where appropriate.Jon Parise2002-01-271-6/+7
|
* Because php_network.h includes <sys/socket.h>, it must be included afterJon Parise2002-01-271-2/+1
| | | | | | | _XPG4_2 is defined. This fixes the build under Solaris 8.
* - Correct some protos.Markus Fischer2002-01-091-3/+3
|
* Changed proto via Georg Richter's request.Sterling Hughes2002-01-081-1/+1
|
* Added some consts for arguments in network.c declarations. MovedStig Venaas2002-01-062-5/+1
| | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage
* Add myself as a maintainerJason Greene2001-12-142-2/+2
|
* Update headers.Sebastian Bergmann2001-12-114-8/+8
|
* proto fixHartmut Holzgraefe2001-12-061-1/+1
|
* Fix broken format string in socket_recv -> zend_parse_parametersJason Greene2001-12-061-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.foobar2001-11-301-1/+2
|
* i'm sure i had this compile before;-)Thies C. Arntzen2001-11-291-1/+2
|
* fix a crash in socket_connect (if hostname was not resolvable)Thies C. Arntzen2001-11-291-10/+13
| | | | | | initialize max_fd in various fdset function fix error checking in _read and _write
* Unified error/warning messages.Markus Fischer2001-11-121-46/+46
|
* WSMarkus Fischer2001-11-121-1/+1
|
* Fix #14020 and some minor leaks.Markus Fischer2001-11-121-1/+7
|
* Include <sys/socket.h> for 'struct sockaddr'.Jon Parise2001-11-061-1/+3
| | | | | # This fixes my FreeBSD build.
* Remove prototype warnings under linux.Markus Fischer2001-11-011-0/+7
|
* nuke remaining warningsDaniel Beulshausen2001-11-013-10/+11
|