summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Patch #924294: Do not check for AF_INET6 if it is not defined.Martin v. Löwis2004-06-021-1/+1
| | | | Will backport to 2.3.
* Band-aid type fix forMichael W. Hudson2004-05-261-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 MacIntyre2004-04-111-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 thatAndrew MacIntyre2004-04-041-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 Cannon2004-03-231-0/+2
| | | | Added socket.error to the socket module's C API.
* Make socketmodule compile again on a modern Linux (that supports Bluetooth).Anthony Baxter2004-02-161-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 Montanaro2004-02-101-3/+1
|
* Add FreeBSD support for bluetooth sockets.Hye-Shik Chang2004-02-021-14/+38
| | | | (SF Patch #888148, reviewed by loewis)
* Patch #874083: Bluetooth support for socket module.Martin v. Löwis2004-01-311-0/+101
|
* Add IPV6_ socket options from RFCs 3493 and 3542. Fixes #867012.Martin v. Löwis2003-12-301-0/+71
|
* Fix erroneus argument parsing of socket.htons() on 64bit big endianHye-Shik Chang2003-12-171-1/+1
| | | | machines.
* Patch #849595: Add socket.shutdown() constants.Martin v. Löwis2003-11-271-2/+25
|
* Getting rid of code dependent on GUSI or the MetroWerks compiler.Jack Jansen2003-11-191-5/+0
|
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Simplify and speedup uses of Py_BuildValue():Raymond Hettinger2003-10-121-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 theAnthony Baxter2003-10-041-4/+7
| | | | SGI compiler and GCC seem to need this.
* Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3.Martin v. Löwis2003-10-031-0/+3
|
* Release host name memory. Fixes #783312. Will backport to 2.3.Martin v. Löwis2003-08-071-6/+12
|
* Patch #781722: Reject AF_INET6 if IPv6 is disabled. Will backport to 2.3.Martin v. Löwis2003-08-051-0/+8
|
* Get socketmodule compiling on IRIX 6.5.10.Jeremy Hylton2003-07-171-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 exitMark Hammond2003-07-091-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 exceptionRaymond Hettinger2003-06-291-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, correctMartin v. Löwis2003-05-101-8/+36
| | | | riscospath.extsep, and use os.extsep throughout.
* Yet another addition to [731644]: only use the lock if thread-supportJust van Rossum2003-05-091-2/+2
| | | | is enabled.
* Addition to [731644]: also use the lock when using the getaddrinfoJust van Rossum2003-05-091-2/+2
| | | | emulation (ie. when HAVE_GETADDRINFO isn't defined).
* [ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protectJust van Rossum2003-05-091-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 canMartin v. Löwis2003-05-031-0/+10
| | | | be taken, and define NI_MAX{HOST|SERV} if necessary.
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-1/+9
|
* Patch 731209: Restore socketmodule's behaviour with dotted quad addressesAnthony Baxter2003-05-021-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öwis2003-05-011-2/+5
|
* Patch by Jp Calderone:Guido van Rossum2003-04-251-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öwis2003-04-181-5/+25
|
* Rename LONG_LONG to PY_LONG_LONG. Fixes #710285.Martin v. Löwis2003-03-291-1/+1
|
* The connect timeout code wasn't working on Windows.Guido van Rossum2003-02-191-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 theTim Peters2003-02-131-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 timeNeal Norwitz2003-02-131-1/+1
|
* Use configure to check for inet_aton.Neal Norwitz2003-02-131-1/+1
|
* Addressing SF bug #643005, implement socket.inet_aton() usingGuido van Rossum2003-02-121-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 Rossum2003-01-311-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 patchJason Tishler2003-01-061-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 itAndrew MacIntyre2003-01-021-4/+4
|
* Patch #650422: Use Posix AF_ constants instead of PF_ ones.Martin v. Löwis2002-12-111-5/+7
|
* Don't include <ioctl.h> unless on __VMS.Martin v. Löwis2002-12-061-1/+3
|
* Patch #614055: Support OpenVMS.Martin v. Löwis2002-12-061-1/+106
|
* Use O_NONBLOCK rather than O_NDELAY, so we get POSIX non-blocking I/O.Neal Norwitz2002-11-021-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.xMartin v. Löwis2002-09-191-0/+8
|
* Update the module doc comment.Guido van Rossum2002-09-031-1/+3
|
* SF bug #592645 fix memory leak in socket.getaddrinfoNeal Norwitz2002-08-091-0/+2
|
* The other half of the patches added to SF patch 555085 by A IGuido van Rossum2002-08-081-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 returnGuido van Rossum2002-08-081-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.