summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Add default timeout functionality. This adds setdefaulttimeout() andGuido van Rossum2002-07-181-0/+2
| | | | | getdefaulttimeout() functions to the socket and _socket modules, and appropriate tests.
* Cleanup a littleNeal Norwitz2002-06-131-6/+7
|
* SF patch 555085 (timeout socket implementation) by Michael Gilfix.Guido van Rossum2002-06-061-59/+74
| | | | | | | | | | | | | 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. :-)
* Repair so that importing socket doesn't blow up on platforms that lackTim Peters2002-02-171-7/+12
| | | | | | | | SSL support. test_socket.py passes again on Windows. Added an XXX about adding _ssl exports to the __all__ list (it doesn't appear to be doing anything about that now, but since I don't have SSL on this box I can't really tell).
* The Grande 'sendall()' patch, copied from release21-maint. Fixes #516715.Martin v. Löwis2002-02-161-2/+2
| | | | | Replaces calls to socket.send() (which isn't guaranteed to send all data) with the new socket.sendall() method.
* Break SSL support out of _socket module and place it into a newMarc-André Lemburg2002-02-161-1/+5
| | | | | | | | | | | | | | | | | | 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.
* Move the helper class _closedsocket *into* the _socketobject class.Guido van Rossum2001-12-181-7/+6
| | | | | | This way, when a socket object is deleted after the socket module has already been zapped by module shutdown, we don't get annoying warnings about exceptions in __del__ methods.
* Add 'sendall' to list of socket methods.Guido van Rossum2001-10-291-1/+1
|
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-1/+1
|
* Inspired by Greg Stein's proposed simplification of the _closesocketGuido van Rossum2001-08-181-5/+1
| | | | | class, I came up with an even simpler solution: raise the error in __getattr__().
* When the socket is closed, don't just assign 0 to self._sock.Guido van Rossum2001-08-181-8/+18
| | | | | This breaks software that excepts a socket.error but not an AttributeError.
* Whitespace normalization.Tim Peters2001-03-291-1/+1
|
* Add a wrapper function for ssl() on Windows. Inspired by SF patchGuido van Rossum2001-03-221-6/+11
| | | | | | | # 409287, ssl fix when using _socketobject, by Robin Dunn. I took the opportunity to improve the way it deals with reload(socket) for the socket function as well.
* add errorTab to __all__ on win*Skip Montanaro2001-03-181-0/+1
| | | | closes bug #406642
* RISCOS changes by dschwertberger.Guido van Rossum2001-03-021-1/+2
|
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+5
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* Whitespace normalization.Tim Peters2001-01-151-1/+1
|
* Mention in the module's doc string that other functions of the socket APIMartin v. Löwis2000-09-301-1/+2
| | | | appear as methods on socket objects.
* Support sizehint in _fileobject.readlines, as documented.Martin v. Löwis2000-09-191-1/+5
|
* Before comparing os.uname() to BeOS check that os.uname actually exists:-)Jack Jansen2000-09-151-1/+1
|
* updated occurences of fqdn algorithm (closes patch #101197)Peter Schneider-Kamp2000-08-161-1/+1
|
* Revise the wrapper structure for the socket module:Fred Drake2000-08-161-0/+237
socket.py is used for all platforms, and it defines the additional classes and alternate socket() function for Windows and BeOS systems. The plat-*/socket.py files are no longer needed, since there is a shared socket.py. make_fqdn() is provided, but I decided to call it getfqdn() to be consistent with the other names in the socket module. Since it is really a "get" operation and does not create a new name, this is the right name to give it. Move the docstring here from the _socket module.