summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-98/+8
|
* Fix broken docstring continuation line for detach().Guido van Rossum2013-12-041-2/+2
|
* Close #19827: On UNIX, setblocking() and settimeout() methods of socket.socketVictor Stinner2013-12-031-8/+10
| | | | | can now avoid a second syscall if the ioctl() function can be used, or if the non-blocking flag of the socket is unchanged.
* add SO_PRIORITY (closes #19802)Benjamin Peterson2013-11-271-0/+3
| | | | Patch by Claudiu Popa.
* Fix sock_recvfrom_guts(): recvfrom() size is limited to an int on Windows, notVictor Stinner2013-11-151-8/+8
| | | | on other OSes!
* Issue #7171: Update syntax to replace MAX in favor of Py_MAX (matching ↵Jason R. Coombs2013-11-101-1/+5
| | | | implementation for Unix).
* Issue #7171: Add Windows implementation of ``inet_ntop`` and ``inet_pton`` ↵Atsuo Ishimoto2012-07-161-2/+106
| | | | to socket module.
* Re #18521: remove assignments of variables that are immediately reassigned.Georg Brandl2013-10-141-1/+1
|
* Issue #16201: socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing forCharles-François Natali2013-09-131-17/+52
| | | | numeric IP addresses.
* 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.