summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.h
Commit message (Collapse)AuthorAgeFilesLines
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-52/+52
|
* Backported PyCapsule from 3.1, and converted most uses ofLarry Hastings2010-03-251-19/+5
| | | | CObject to PyCapsule.
* on windows, r64214 broke compilation with some recent SDKs,Amaury Forgeot d'Arc2008-06-141-2/+3
| | | | because IPPROTO_IPV6 may be an enumeration member...
* Restore support for Microsoft VC6 compiler.Amaury Forgeot d'Arc2008-06-131-11/+15
| | | | | | | Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler)
* Issue #1646: Make socket support TIPC. The socket module now has supportChristian Heimes2008-01-071-0/+4
| | | | | for TIPC under Linux, see http://tipc.sf.net/ for more information. Thanks to Alberto Bertogli for the patch
* Added interface to Windows' WSAIoctl and a simple example for a network sniffer.Christian Heimes2008-01-041-0/+1
|
* Modified PyImport_Import and PyImport_ImportModule to always use absolute ↵Christian Heimes2008-01-031-1/+1
| | | | | | imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
* Patch #1432399: Add HCI sockets.Martin v. Löwis2007-02-141-0/+2
|
* Patch #1544279: Improve thread-safety of the socket module by movingMartin v. Löwis2006-12-031-1/+0
| | | | | the sock_addr_t storage out of the socket object. Will backport to 2.5.
* Get socketmodule to build after adding netlink support.Neal Norwitz2006-01-161-0/+3
|
* Patch #1103116: AF_NETLINK sockets basic support.Martin v. Löwis2006-01-141-0/+9
|
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-141-18/+21
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* Make socket.sslerror a subclass of socket.error .Brett Cannon2004-03-231-0/+1
| | | | Added socket.error to the socket module's C API.
* Add FreeBSD support for bluetooth sockets. (SF Patch #888148)Hye-Shik Chang2004-02-021-0/+4
|
* Patch #874083: Bluetooth support for socket module.Martin v. Löwis2004-01-311-0/+12
|
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-1/+5
|
* Major overhaul of timeout sockets:Guido van Rossum2002-06-131-3/+2
| | | | | | | | | | | | | | | | | | | | - setblocking(0) and settimeout(0) are now equivalent, and ditto for setblocking(1) and settimeout(None). - Don't raise an exception from internal_select(); let the final call report the error (this means you will get an EAGAIN error instead of an ETIMEDOUT error -- I don't care). - Move the select to inside the Py_{BEGIN,END}_ALLOW_THREADS brackets, so other theads can run (this was a bug in the original code). - Redid the retry logic in connect() and connect_ex() to avoid masking errors. This probably doesn't work for Windows yet; I'll fix that next. It may also fail on other platforms, depending on what retrying a connect does; I need help with this. - Get rid of the retry logic in accept(). I don't think it was needed at all. But I may be wrong.
* Repair a comment.Guido van Rossum2002-06-071-1/+1
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-061-0/+3
| | | | | | | | | | | | | I've made considerable changes to Michael's code, specifically to use the select() system call directly and to store the timeout as a C double instead of a Python object; internally, -1.0 (or anything negative) represents the None from the API. I'm not 100% sure that all corner cases are covered correctly, so please keep an eye on this. Next I'm going to try it Windows before Tim complains. No way is this a bugfix candidate. :-)
* Patch #520062: Support IPv6 with VC.NET.Martin v. Löwis2002-03-011-0/+10
|
* Add documentation about how the inter-module linking works.Marc-André Lemburg2002-02-251-1/+54
|
* Moved the declaration of PySocketSock_Type from socketmodule.h toTim Peters2002-02-171-7/+0
| | | | | | | | | | | | socketmodule.c. No code outside of the .c file references it, so it doesn't belong the .h file (at least not yet ...), and declaring it an imported symbol in the .h file can't be made to work on Windows (it's a cross-DLL symbol then) without substantial code rewriting. Also repaired the comment that goes along with the decl, to stop referring to names and functions that haven't existed for 7 years <wink>. socketmodule.c compiles cleanly on Windows again. The test_socket dies at once, though (later).
* For readability, switch to tab indents; was using a mix of tab indents,Tim Peters2002-02-171-35/+35
| | | | | 4-space indents, and ambiguous space+tab indents. Added an XXX comment about a confusing part. Still doesn't build on Windows.
* Break SSL support out of _socket module and place it into a newMarc-André Lemburg2002-02-161-0/+159
helper module _ssl. The support for the RAND_* APIs in _ssl is now only enabled for OpenSSL 0.9.5 and up since they were added in that release. Note that socketmodule.* should really be renamed to _socket.* -- unfortunately, this seems to lose the CVS history of the file. Please review and test... I was only able to test the header file chaos in socketmodule.c/h on Linux. The test run through fine and compiles don't give errors or warnings. WARNING: This patch does *not* include changes to the various non-Unix build process files.