summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Use INADDR_BROADCAST instead of hard-coded value (it's part of POSIX andCharles-François Natali2013-08-311-1/+1
| | | | already appears without #ifdef a couple lines above).
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-22/+189
| | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+4
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-4/+4
| | | | | | | | error messages and comments.
* | Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
|\ \ | |/ | | | | CID 982369
| * Issue #18549: Eliminate dead code in socket_ntohl().Christian Heimes2013-07-251-2/+0
| | | | | | | | CID 982369
* | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.Victor Stinner2013-06-241-4/+4
| |
* | Issue #9566: recv(), recvfrom(), send(), sendall() and sendto() methodsVictor Stinner2013-06-241-5/+32
| | | | | | | | | | | | | | of socket.socket objects now truncate the input buffer to INT_MAX bytes on Windows to avoid an integer overflow. (sendall() still send the whole buffer.)
* | Issue #18259: Declare sethostname in socketmodule.c for AIXChristian Heimes2013-06-191-0/+5
|\ \ | |/
| * Issue #18259: Declare sethostname in socketmodule.c for AIXChristian Heimes2013-06-191-0/+5
| |
* | (3.3->default) Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+1
|\ \ | |/ | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
| * Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+1
| | | | | | | | AI_NUMERICSERV isn't defined on OSX 10.4.
* | Reuse Py_MIN and Py_MAX macros: remove duplicate MIN/MAX macrosVictor Stinner2013-06-041-5/+2
| | | | | | | | multiprocessing.h: remove unused MIN and MAX macros
* | (Merge 3.3) Close #18109: os.uname() now decodes fields from the localeVictor Stinner2013-06-031-8/+8
|\ \ | |/ | | | | | | encoding, and socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
| * Close #18109: os.uname() now decodes fields from the locale encoding, andVictor Stinner2013-06-031-8/+8
| | | | | | | | | | socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
* | (3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+9
|\ \ | |/ | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
| * Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+9
| | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
* | Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.Giampaolo Rodola'2013-05-211-0/+3
| |
* | Backed out changeset c0f2b038fc12Charles-François Natali2013-05-211-1/+1
| |
* | Issue #17683: socket module: return AF_UNIX addresses in Linux abstractCharles-François Natali2013-05-211-1/+1
| | | | | | | | namespace as string.
* | Issue #17917: Use PyModule_AddIntMacro() instead of PyModule_AddIntConstant()Charles-Francois Natali2013-05-201-329/+321
| | | | | | | | when applicable.
* | merge 3.3Benjamin Peterson2013-05-161-1/+2
|\ \ | |/
| * C89 declaration complianceBenjamin Peterson2013-05-161-1/+2
| |
* | Merge with 3.3, issue #17047: remove doubled words added in 3.3,Terry Jan Reedy2013-03-111-1/+1
|\ \ | |/ | | | | as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17047: remove doubled words added in 3.3Terry Jan Reedy2013-03-111-1/+1
| | | | | | | | as reported by Serhiy Storchaka and Matthew Barnett.
| * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
| | * Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) ↵Antoine Pitrou2013-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag).
| * | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-3/+3
| |\ \ | | |/ | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
| | * Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-191-3/+3
| | | | | | | | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks. This is a backport of changesets 13e2e44db99d and 525407d89277.
* | | Issue #15359: Add CAN_BCM protocol support to the socket module. Patch by BrianCharles-François Natali2013-02-051-0/+17
| | | | | | | | | | | | Thorne.
* | | Issue #15989: Fix several occurrences of integer overflowSerhiy Storchaka2013-01-141-3/+3
| | | | | | | | | | | | when result of PyLong_AsLong() narrowed to int without checks.
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-1/+1
| | |
* | | expose TCP_FASTOPEN and MSG_FASTOPENBenjamin Peterson2012-12-131-1/+6
| | |
* | | #16135: Removal of OS/2 support (Modules/*)Jesus Cea2012-10-051-94/+3
|/ /
* | Make sure that *really* no more than sizeof(ifr.ifr_name) chars are ↵Christian Heimes2012-09-091-1/+2
| | | | | | | | strcpy-ed to ifr.ifr_name and that the string is *always* NUL terminated. New code shouldn't use strcpy(), too. CID 719692
* | Merge 3.2 to defaultAndrew Svetlov2012-08-141-1/+1
|\ \ | |/
| * Modules/socketmodule.c: netdb_lock: define static.Matthias Klose2012-08-141-1/+1
| |
* | Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
|\ \ | |/
| * Remove useless test (flowinfo is unsigned).Charles-François Natali2012-06-231-2/+2
| |
* | Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson2012-04-071-7/+66
| |
* | Issue #14300: Under Windows, sockets created using socket.dup() now allow ↵Antoine Pitrou2012-03-311-1/+1
| | | | | | | | | | | | overlapped I/O. Patch by sbt.
* | Fix warning when compiling socketmodule.c with VS2010Kristján Valur Jónsson2012-03-311-0/+1
| | | | | | | | VS2010 defineds the old errno constants in addition to the WSA* ones.
* | Issue #10951: Fix warnings in the socket module.Ross Lagerwall2012-03-061-4/+4
| |
* | Issue #13777: Add PF_SYSTEM sockets on OS X.Martin v. Löwis2012-02-031-0/+107
| | | | | | | | Patch by Michael Goderbauer.
* | Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-8/+21
|\ \ | |/ | | | | Vilmos Nebehaj.
| * Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch byCharles-François Natali2012-01-021-8/+21
| | | | | | | | Vilmos Nebehaj.
* | Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson.Charles-François Natali2011-12-231-16/+9
| |
* | Issue #12809: Expose IP_TRANSPARENT in the socket module. Patch by MichaelCharles-François Natali2011-12-171-0/+3
| | | | | | | | Farrell.
* | Issue #13560: os.strerror() now uses the current locale encoding instead of ↵Victor Stinner2011-12-171-3/+2
| | | | | | | | UTF-8
* | Issue #8373: The filesystem path of AF_UNIX sockets now uses the filesystemAntoine Pitrou2011-12-161-6/+19
| | | | | | | | | | encoding and the surrogateescape error handler, rather than UTF-8. Patch by David Watson.