Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | OpenSSL support. This is based on patches for a version of SSLeay by | Guido van Rossum | 1999-12-07 | 1 | -1/+290 |
| | | | | | | Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by Laszlo Kovacs of HP. Both have kindly given permission to include the patches in the Python distribution. Final formatting by GvR. | ||||
* | Bugfix by Jack Jansen for Macintosh (for the inet_ntoa/aton changes): | Guido van Rossum | 1999-11-04 | 1 | -1/+6 |
| | | | | | <arpa/inet.h> doesn't exist and isn't needed; and inet_addr() returns a structure containing a long rather than a long. | ||||
* | (1) On Linux, we really need to trust the configure script to select | Guido van Rossum | 1999-09-15 | 1 | -2/+13 |
| | | | | | | | | | the right variant of gethostbyname_r for us, since not all Linuxes are equal in this respect. Reported by Laurent Pointal. (2) On BeOS, Chris Herborth reports that instead of arpa/inet.h you must include net/netdb.h to get the inet_ntoa() and inet_addr() prototypes. | ||||
* | It appears that inet_aton() doesn't really exist except in libresolv; | Guido van Rossum | 1999-09-09 | 1 | -20/+3 |
| | | | | | the proper function to call is inet_addr(). Since we already had code to do that (for MS-Windows), this simplifies things a lot! | ||||
* | Port inet_ntoa and inet_aton to Windows: | Guido van Rossum | 1999-08-20 | 1 | -2/+23 |
| | | | | | | - fix unescaped newline in string literal - removed unused err variable - Windows doesn't have inet_aton; use inet_addr instead | ||||
* | Patch by Ben Gertzfield to add inet_aton() and inet_ntoa() calls. | Guido van Rossum | 1999-08-20 | 1 | -0/+72 |
| | |||||
* | Patch by Marc-Andre Lemburg to add a bunch more symbols. | Guido van Rossum | 1999-08-09 | 1 | -2/+86 |
| | |||||
* | Put back __osf__ support for gethostbyname_r(); the real bug was that | Guido van Rossum | 1999-04-13 | 1 | -1/+5 |
| | | | | | | it was being used even without threads. This of course might be an all-platform problem so now we only use the _r variant when we are using threads. | ||||
* | 3-arg gethostbyname_r doesn't really work on OSF/1. | Guido van Rossum | 1999-04-10 | 1 | -1/+1 |
| | |||||
* | Implement two suggestions by Jonathan Giddy: (1) in AIX, clear the | Guido van Rossum | 1999-03-24 | 1 | -0/+19 |
| | | | | | | | | | | | | data struct before calling gethostby{name,addr}_r(); (2) ignore the 3/5/6 args determinations made by the configure script and switch on platform identifiers instead: AIX, OSF have 3 args Sun, SGI have 5 args Linux has 6 args On all other platforms, undef HAVE_GETHOSTBYNAME_R altogether. | ||||
* | Vladimir Marangozov implements the AIX 3-arg gethostbyname_r code. | Guido van Rossum | 1999-03-24 | 1 | -14/+32 |
| | |||||
* | Clean up pass for the previous patches. | Guido van Rossum | 1999-03-22 | 1 | -23/+35 |
| | | | | | | | | | | | | | | | | | | - Use HAVE_GETHOSTBYNAME_R_6_ARG instead of testing for Linux and glibc2. - If gethostbyname takes 3 args, undefine HAVE_GETHOSTBYNAME_R -- don't know what code should be used. - New symbol USE_GETHOSTBYNAME_LOCK defined iff the lock should be used. - Modify the gethostbyaddr() code to also hold on to the lock until after it is safe to release, overlapping with the Python lock. (Note: I think that it could in theory be possible that Python code executed while gethostbyname_lock is held could attempt to reacquire the lock -- e.g. in a signal handler or destructor. I will simply say "don't do that then.") | ||||
* | Jonathan Giddy writes: | Guido van Rossum | 1999-03-22 | 1 | -8/+15 |
| | | | | | | | | Here's a patch to fix the race condition, which wasn't fixed by Rob's patch. It holds the gethostbyname lock until the results are copied out, which means that this lock and the Python global lock are held at the same time. This shouldn't be a problem as long as the gethostbyname lock is always acquired when the global lock is not held. | ||||
* | Patch by Rob Riggs for Linux -- glibc2 has a different argument | Guido van Rossum | 1999-03-15 | 1 | -0/+24 |
| | | | | converntion for gethostbyname_r() etc. than Solaris! | ||||
* | Thanks to Chris Herborth, the thread primitives now have proper Py* | Guido van Rossum | 1998-12-21 | 1 | -8/+8 |
| | | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names). | ||||
* | Add DL_EXPORT() to all modules that could possibly be used | Guido van Rossum | 1998-12-04 | 1 | -1/+1 |
| | | | | on BeOS or Windows. | ||||
* | Use the t# format where appropriate. Greg Stein. | Guido van Rossum | 1998-10-08 | 1 | -1/+1 |
| | |||||
* | Renamed thread.h to pythread.h. | Guido van Rossum | 1998-10-01 | 1 | -1/+1 |
| | |||||
* | Remove some unused variables from gethostbyaddr_ex and gethostbyaddr, | Guido van Rossum | 1998-09-13 | 1 | -4/+0 |
| | | | | discovered by Marc Lemburg. | ||||
* | Removed unused variables. | Guido van Rossum | 1998-08-06 | 1 | -4/+0 |
| | |||||
* | Changes for BeOS, QNX and long long, by Chris Herborth. | Guido van Rossum | 1998-08-04 | 1 | -3/+40 |
| | |||||
* | Added gethostbyname_ex(), which returns the same kind of data as | Guido van Rossum | 1998-08-04 | 1 | -37/+99 |
| | | | | | | | | gethostbyaddr(). (Plain gethostbyname() returns only the IP address.) This moves the code shared by gethostbyaddr() and gethostbyname_ex() to a subroutine. Original patch by Dan Stromberg; some tweaks by GvR. | ||||
* | Added copious docstrings, plus two minor layout tweaks. | Guido van Rossum | 1998-07-07 | 1 | -39/+309 |
| | |||||
* | Some systems (e.g. Linux) use enums for some symbols (like IPPROTO_IP) | Guido van Rossum | 1998-05-28 | 1 | -0/+11 |
| | | | | | | so that our #ifdef test has the wrong effect. Substitute hardcoded values for some important symbols (but not for the whole range -- some are pretty obscure so it's not worth it). | ||||
* | Threading speedup patches by Christopher Lindblad <cjl@infoseek.com>. | Guido van Rossum | 1998-04-09 | 1 | -2/+44 |
| | |||||
* | Left-aligned preprocessor directives and changed C++ comments to C | Guido van Rossum | 1997-12-02 | 1 | -9/+9 |
| | | | | comments. | ||||
* | os2 patch by Jeff Rush | Guido van Rossum | 1997-11-22 | 1 | -15/+116 |
| | |||||
* | PySocketSock_methods: Added "connect_ex" so the method can actually be | Barry Warsaw | 1997-11-20 | 1 | -0/+1 |
| | | | | called! | ||||
* | Add s.connect_ex() which returns errno instead of raising an exception. | Guido van Rossum | 1997-11-19 | 1 | -0/+20 |
| | |||||
* | Apply two changes, systematically: | Guido van Rossum | 1997-10-01 | 1 | -9/+8 |
| | | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code! | ||||
* | socket_type -> SocketType | Guido van Rossum | 1997-06-02 | 1 | -2/+2 |
| | |||||
* | Add socket.socket_type, as discussed on c.l.p. | Guido van Rossum | 1997-05-21 | 1 | -0/+5 |
| | |||||
* | Remove the last three uses of PyArg_GetInt() from the source. | Guido van Rossum | 1997-05-15 | 1 | -3/+3 |
| | |||||
* | In makesockaddr(), if we don't know the address family, don't raise an | Guido van Rossum | 1997-05-07 | 1 | -3/+6 |
| | | | | exception -- return it as a tuple. Seems useful in promiscuous mode. | ||||
* | Tweaks to keep the Microsoft compiler quier. | Guido van Rossum | 1997-04-09 | 1 | -1/+3 |
| | |||||
* | Check of return values and proper error handling. | Barry Warsaw | 1997-01-03 | 1 | -30/+60 |
| | |||||
* | Added the new getprotobyname() call to the module overview at the top. | Guido van Rossum | 1996-12-19 | 1 | -0/+1 |
| | |||||
* | Added getprotobyname() interface. | Guido van Rossum | 1996-12-19 | 1 | -0/+24 |
| | |||||
* | Added extern decl for gethostname() to keep gcc -Wall happy. | Guido van Rossum | 1996-12-10 | 1 | -0/+4 |
| | |||||
* | Keep gcc -Wall happy. | Guido van Rossum | 1996-12-05 | 1 | -0/+5 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Don't close an already closed socket. | Guido van Rossum | 1996-10-12 | 1 | -3/+5 |
| | |||||
* | Slightly different Windows ifdefs | Guido van Rossum | 1996-06-28 | 1 | -4/+4 |
| | |||||
* | changed windows test symbols; removed debug printf from sockets | Guido van Rossum | 1996-06-26 | 1 | -10/+9 |
| | |||||
* | More rational support for Windows (tested on Roj's NT 3.5 machine only). | Guido van Rossum | 1996-06-20 | 1 | -141/+117 |
| | | | | Use PyArg_ParseTuple() where it makes sense. | ||||
* | ntohs, ntohl, htons, htonl -- thanks to Lance | Guido van Rossum | 1996-06-12 | 1 | -0/+56 |
| | |||||
* | more changes for Windows, sigh | Guido van Rossum | 1996-06-12 | 1 | -29/+57 |
| | |||||
* | Calculate length of AF_UNIX addr struct portably in getsockaddrarg(). | Guido van Rossum | 1996-06-11 | 1 | -1/+1 |
| | |||||
* | Get rid of obsolete allowbroadcast(). | Guido van Rossum | 1996-06-11 | 1 | -23/+2 |
| | | | | Avoid core dumps in resizestring(). | ||||
* | Windows/PC changes | Guido van Rossum | 1996-05-23 | 1 | -7/+40 |
| |