summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
Commit message (Collapse)AuthorAgeFilesLines
* - 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 : )
* Added some consts for arguments in network.c declarations. MovedStig Venaas2002-01-061-5/+0
| | | | | | php_sockaddr_storage to php_network.h and added check for struct sockaddr_storage
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* 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
|
* make this function staticDaniel Beulshausen2001-11-011-4/+0
|
* - convert to use new zend_parse_parameters APIDaniel Beulshausen2001-11-011-1/+6
| | | | | | | - unify errormessages + add socket_last_error() - fix linklibrary under windows - some streamlining
* Force proper alignment of php_sockaddr_storage. Sparc will throwSascha Schumann2001-09-261-1/+2
| | | | | a SIGBUS, when accessing the family part of a char-aligned structure.
* Much better fix for non forte compilers on Solaris.Jason Greene2001-09-041-1/+1
| | | | | | Removed pragma hack. Renamed socket struct to bsd_socket.
* fix recently discovered api flawsDaniel Beulshausen2001-07-251-9/+18
| | | | | | | - nuke first parameter to socket_select (detemine it ourself) - swap parameters for socket_fd_set, socket_fd_clear & socket_fd_isset - allow to pass an array of sockets to socket_fd_set + socket_fd_clear
* Fix compile warning.Sterling Hughes2001-05-211-1/+2
|
* update sockets to work with winsock as wellDaniel Beulshausen2001-05-171-43/+52
|
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* - Fix the handling of resource entriesSterling Hughes2000-12-031-3/+1
| | | | | - Fix the fd_dealloc() function
* Added ini entry for choosing whether to use the read() wrapper or directlyChris Vandomelen2000-10-221-0/+1
| | | | | | | calling the read() system call. # Some people were commenting about "oddities" in the wrapper that I hadn't # noticed before, though I've used it in many places before now..
* make ZTS mode compileThies C. Arntzen2000-09-071-1/+1
|
* A Whole buncha stuff, mostly bug fixing...Sterling Hughes2000-08-201-26/+12
| | | | | | | | | | | | | | | | | | | | | | | - Make constants case-sensitive, conforming with the rest of PHP & the C API. - Make module compatible with thread safety features. - open_listen_sok() -> open_listen_sock() - Remove ext_skel comments - Get rid of the ZVAL macro and replace with the correct Z_*_* macros - declare all functions local to the file as static. - Remove empty PHP_MSHUTDOWN() function. - Removed confirm_sockets_compiled() - Changed RETVAL_* macro's to RETURN_* macro's eliminating errors with incorrect return values and a potential leak/crash or two. - functions that return void, actually return void - Replaced 'long' in the prototypes with 'int' - Fixed fd_zero() function, it gave a WRONG_PARAM_COUNT when you gave it the proper parameter count. - Changed the way an arbitrary number of parameters were accessed from build_iovec() to use the Zend API. - Added socketpair() and shutdown() functions.
* * php4/ext/sockets.c, php4/ext/php_sockets.h:Chris Vandomelen2000-07-081-2/+16
| | | | | | | | | | | | | | | Numerous changes. Many prototypes changed to be more like the appropriate *NIX counterparts. Many new prototypes defining many more advanced socket routines. Better AF_UNIX socket support. bind() now recognizes the socket type and acts appropriately, instead of needing the AF_* for the socket passed in. # Something I'd like to write yet is proper signal() support. Unfortunately, # the last time I tried, doing anything with the signal except ignoring it # caused PHP to segfault. And to have decent socket support.. at least, from # my experience, having signals is a good thing. Only problem.. to implement # it, some changes would have to be made to the parser - since that is where # the problems lie on handling asynchronous signals.
* Identifiers which begin with an underscore are reserved. ChangedSascha Schumann2000-07-031-3/+3
| | | | | _PHP_SOCKETS_H to PHP_SOCKETS_H.
* * Makefile.inChris Vandomelen2000-07-031-0/+110
config.m4 php_sockets.h sockets.c sockets.php: - Added files needed for Unix-style sockets support in PHP.