summaryrefslogtreecommitdiff
path: root/ext/sockets/sockets.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-011-6/+11
|
* - 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-291-17/+44
| | | | | | | | | | - 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.
* 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-061-180/+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-061-17/+88
| | | | | | | | | | | 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)
* 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-061-0/+1
| | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage
* Add myself as a maintainerJason Greene2001-12-141-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* 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)
* 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
|
* nuke remaining warningsDaniel Beulshausen2001-11-011-8/+9
|
* make this function staticDaniel Beulshausen2001-11-011-1/+3
|
* - convert to use new zend_parse_parameters APIDaniel Beulshausen2001-11-011-832/+694
| | | | | | | - unify errormessages + add socket_last_error() - fix linklibrary under windows - some streamlining
* Fix possible leak.Markus Fischer2001-10-301-0/+1
|
* * zend_module_entry change: apino, debug and zts are moved first,Stig Bakken2001-10-111-0/+2
| | | | | | see README.EXTENSIONS file for upgrade help. @Introduced extension version numbers (Stig)
* make this work under OSXSterling Hughes2001-10-051-0/+2
|
* 2nd phase in back-substitution those macro'sJeroen van Wolffelaar2001-09-251-2/+2
| | | | | I've got pretty much everything now...
* Back-substitute for Z_* macro's. If it breaks some extension (the script ↵Jeroen van Wolffelaar2001-09-251-6/+6
| | | | isn't optimal, it parses for example var->zval.value incorrect) please let me know.
* doh\!Wez Furlong2001-09-191-1/+1
|
* Fix silly bugsWez Furlong2001-09-191-5/+9
|
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* Prevent incorrect warning message from occuring on an EOF of socket_read.Jason Greene2001-09-051-2/+5
|
* Much better fix for non forte compilers on Solaris.Jason Greene2001-09-041-60/+57
| | | | | | Removed pragma hack. Renamed socket struct to bsd_socket.
* Break the entire PHP buildSterling Hughes2001-08-241-2/+2
| | | | | # just kidding, noet work :)