Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Patch #924294: Do not check for AF_INET6 if it is not defined. | Martin v. Löwis | 2004-06-02 | 1 | -1/+1 | |
| | | | | Will backport to 2.3. | |||||
* | Band-aid type fix for | Michael W. Hudson | 2004-05-26 | 1 | -0/+19 | |
| | | | | | | | [ 728330 ] Don't define _SGAPI on IRIX The Right Thing would be nice, for now this'll do. At least it isn't going to break anything *other* than IRIX... | |||||
* | Fixes for AF_UNIX support on OS/2: | Andrew MacIntyre | 2004-04-11 | 1 | -0/+4 | |
| | | | | | | | | | - return the full size of the sockaddr_un structure, without which bind() fails with EINVAL; - set test_socketserver to use a socket name that meets the form required by the underlying implementation; - don't bother exercising the forking AF_UNIX tests on EMX - its fork() can't handle the stress. | |||||
* | OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that | Andrew MacIntyre | 2004-04-04 | 1 | -4/+4 | |
| | | | | | the socket name must start with /socket32/. Unlike Unix systems, this file never exists in the file system. | |||||
* | Make socket.sslerror a subclass of socket.error . | Brett Cannon | 2004-03-23 | 1 | -0/+2 | |
| | | | | Added socket.error to the socket module's C API. | |||||
* | Make socketmodule compile again on a modern Linux (that supports Bluetooth). | Anthony Baxter | 2004-02-16 | 1 | -1/+1 | |
| | | | | The Bluetooth code was obviously never tested on Linux. | |||||
* | remove support for missing ANSI C header files (limits.h, stddef.h, etc). | Skip Montanaro | 2004-02-10 | 1 | -3/+1 | |
| | ||||||
* | Add FreeBSD support for bluetooth sockets. | Hye-Shik Chang | 2004-02-02 | 1 | -14/+38 | |
| | | | | (SF Patch #888148, reviewed by loewis) | |||||
* | Patch #874083: Bluetooth support for socket module. | Martin v. Löwis | 2004-01-31 | 1 | -0/+101 | |
| | ||||||
* | Add IPV6_ socket options from RFCs 3493 and 3542. Fixes #867012. | Martin v. Löwis | 2003-12-30 | 1 | -0/+71 | |
| | ||||||
* | Fix erroneus argument parsing of socket.htons() on 64bit big endian | Hye-Shik Chang | 2003-12-17 | 1 | -1/+1 | |
| | | | | machines. | |||||
* | Patch #849595: Add socket.shutdown() constants. | Martin v. Löwis | 2003-11-27 | 1 | -2/+25 | |
| | ||||||
* | Getting rid of code dependent on GUSI or the MetroWerks compiler. | Jack Jansen | 2003-11-19 | 1 | -5/+0 | |
| | ||||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 | |
| | | | | (From SF patch #810751) | |||||
* | Simplify and speedup uses of Py_BuildValue(): | Raymond Hettinger | 2003-10-12 | 1 | -2/+2 | |
| | | | | | | * Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c) * Py_BuildValue("()",a) --> PyTuple_New(0) * Py_BuildValue("O", a) --> Py_INCREF(a) | |||||
* | made the SGI INET_ADDRSTRLEN define apply for any compiler on Irix. Both the | Anthony Baxter | 2003-10-04 | 1 | -4/+7 | |
| | | | | SGI compiler and GCC seem to need this. | |||||
* | Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3. | Martin v. Löwis | 2003-10-03 | 1 | -0/+3 | |
| | ||||||
* | Release host name memory. Fixes #783312. Will backport to 2.3. | Martin v. Löwis | 2003-08-07 | 1 | -6/+12 | |
| | ||||||
* | Patch #781722: Reject AF_INET6 if IPv6 is disabled. Will backport to 2.3. | Martin v. Löwis | 2003-08-05 | 1 | -0/+8 | |
| | ||||||
* | Get socketmodule compiling on IRIX 6.5.10. | Jeremy Hylton | 2003-07-17 | 1 | -2/+11 | |
| | | | | | | I don't think the fix here is very good, but I'm not sure what would be better. In particular, we should not be defining _SGIAPI, but lots of things break if we remove it. | |||||
* | Fix [ 766669 ] Consistent GPF on exit | Mark Hammond | 2003-07-09 | 1 | -1/+1 | |
| | | | | | Use Py_AtExit instead of atexit so we are called during Py_Finalize() rather than during DLL teardown. | |||||
* | SF patch #760257: add socket.timeout exception | Raymond Hettinger | 2003-06-29 | 1 | -38/+113 | |
| | | | | | | | | | (Contributed by Bob Halley) Added a new exception, socket.timeout so that timeouts can be differentiated from other socket exceptions. Docs, more tests, and newsitem to follow. | |||||
* | Patch #734231: Update RiscOS support. In particular, correct | Martin v. Löwis | 2003-05-10 | 1 | -8/+36 | |
| | | | | riscospath.extsep, and use os.extsep throughout. | |||||
* | Yet another addition to [731644]: only use the lock if thread-support | Just van Rossum | 2003-05-09 | 1 | -2/+2 | |
| | | | | is enabled. | |||||
* | Addition to [731644]: also use the lock when using the getaddrinfo | Just van Rossum | 2003-05-09 | 1 | -2/+2 | |
| | | | | emulation (ie. when HAVE_GETADDRINFO isn't defined). | |||||
* | [ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect | Just van Rossum | 2003-05-09 | 1 | -10/+45 | |
| | | | | | access with lock on those platforms that getaddrinfo() isn't (known to be) thread-safe. Thanks to MvL for mentoring this patch. | |||||
* | Patch #724588: Check whether the address of hstrerror and inet_pton can | Martin v. Löwis | 2003-05-03 | 1 | -0/+10 | |
| | | | | be taken, and define NI_MAX{HOST|SERV} if necessary. | |||||
* | Patch #708495: Port more stuff to OpenVMS. | Martin v. Löwis | 2003-05-03 | 1 | -1/+9 | |
| | ||||||
* | Patch 731209: Restore socketmodule's behaviour with dotted quad addresses | Anthony Baxter | 2003-05-02 | 1 | -0/+16 | |
| | | | | | to that of Python2.1. Such nnn.nnn.nnn.nnn addresses are just used directly, not passed to the resolver for a pointless lookup. | |||||
* | Patch #725942: Always rename emulation functions. | Martin v. Löwis | 2003-05-01 | 1 | -2/+5 | |
| | ||||||
* | Patch by Jp Calderone: | Guido van Rossum | 2003-04-25 | 1 | -1/+114 | |
| | | | | | | | | | - The socket module now provides the functions inet_pton and inet_ntop for converting between string and packed representation of IP addresses. See SF patch #658327. This still needs a bit of work in the doc area, because it is not available on all platforms (especially not on Windows). | |||||
* | Implement IDNA (Internationalized Domain Names in Applications). | Martin v. Löwis | 2003-04-18 | 1 | -5/+25 | |
| | ||||||
* | Rename LONG_LONG to PY_LONG_LONG. Fixes #710285. | Martin v. Löwis | 2003-03-29 | 1 | -1/+1 | |
| | ||||||
* | The connect timeout code wasn't working on Windows. | Guido van Rossum | 2003-02-19 | 1 | -12/+13 | |
| | | | | | | Rather than trying to second-guess the various error returns of a second connect(), use select() to determine whether the socket becomes writable (which means connected). | |||||
* | socket_inet_aton(): ip_addr was left undefined before use in the | Tim Peters | 2003-02-13 | 1 | -9/+9 | |
| | | | | | !HAVE_INET_ATON case. Repaired that, and tried to repair what looked like out-of-date comments. | |||||
* | Ummm, try to get it right this time | Neal Norwitz | 2003-02-13 | 1 | -1/+1 | |
| | ||||||
* | Use configure to check for inet_aton. | Neal Norwitz | 2003-02-13 | 1 | -1/+1 | |
| | ||||||
* | Addressing SF bug #643005, implement socket.inet_aton() using | Guido van Rossum | 2003-02-12 | 1 | -1/+17 | |
| | | | | | | | | | inet_aton() rather than inet_addr() -- the latter is obsolete because it has a problem: "255.255.255.255" is a valid address but indistinguishable from an error. (I'm not sure if inet_aton() exists everywhere -- in case it doesn't, I've left the old code in with an #ifdef.) | |||||
* | SF patch #678257 by Geoff Talvola. | Guido van Rossum | 2003-01-31 | 1 | -1/+1 | |
| | | | | | In sendall(), do an internal select before each send() call, instead of only for the first one. | |||||
* | Patch #661760: Cygwin auto-import module patch | Jason Tishler | 2003-01-06 | 1 | -6/+3 | |
| | | | | | | | | | | | | The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin. | |||||
* | OS/2 sockets do not support AF_UNIX, even though EMX headers define it | Andrew MacIntyre | 2003-01-02 | 1 | -4/+4 | |
| | ||||||
* | Patch #650422: Use Posix AF_ constants instead of PF_ ones. | Martin v. Löwis | 2002-12-11 | 1 | -5/+7 | |
| | ||||||
* | Don't include <ioctl.h> unless on __VMS. | Martin v. Löwis | 2002-12-06 | 1 | -1/+3 | |
| | ||||||
* | Patch #614055: Support OpenVMS. | Martin v. Löwis | 2002-12-06 | 1 | -1/+106 | |
| | ||||||
* | Use O_NONBLOCK rather than O_NDELAY, so we get POSIX non-blocking I/O. | Neal Norwitz | 2002-11-02 | 1 | -4/+4 | |
| | | | | | | | | | | | | | On HPUX, Solaris, Tru64 (Dec UNIX), and IRIX (I think), O_NONBLOCK is the POSIX version of non-blocking I/O which is what we want. On Linux and FreeBSD (at least), O_NONBLOCK and O_NDELAY are the same. So this change should have no negative effect on those platforms. Tested on Linux, Solaris, HPUX. Thanks to Anders Qvist for diagnosing this problem. | |||||
* | Patch #608999: Fix portability problems with MIPSPro 7.x | Martin v. Löwis | 2002-09-19 | 1 | -0/+8 | |
| | ||||||
* | Update the module doc comment. | Guido van Rossum | 2002-09-03 | 1 | -1/+3 | |
| | ||||||
* | SF bug #592645 fix memory leak in socket.getaddrinfo | Neal Norwitz | 2002-08-09 | 1 | -0/+2 | |
| | ||||||
* | The other half of the patches added to SF patch 555085 by A I | Guido van Rossum | 2002-08-08 | 1 | -0/+2 | |
| | | | | | | MacIntyre. At least on OS/2, a subsequent connect() on a nonblocking socket returns errno==EISCONN to indicate success. This seems harmless on Unix. | |||||
* | Clean up some docstrings. Some docstrings didn't show their return | Guido van Rossum | 2002-08-08 | 1 | -10/+11 | |
| | | | | | | value; others were inconsistent in what to name the argument or return value; a few module-global functions had "socket." in front of their name, against convention. |