Thomas Heller
5f0b7ae481
Make Modules/socketobject.c compile for Windows again.
2008-01-13 11:19:43 +00:00
Christian Heimes
0f973934f4
Removed unused variable
2008-01-11 15:42:29 +00:00
Georg Brandl
ff15c866a6
Guard definition of TIPC_SUB_CANCEL with an #ifdef.
2008-01-11 09:19:11 +00:00
Raymond Hettinger
a7d984e838
Comment-out missing constant (from rev 59819)
2008-01-11 02:12:33 +00:00
Christian Heimes
fb2d25a154
Issue #1646 : Make socket support TIPC. The socket module now has support
...
for TIPC under Linux, see http://tipc.sf.net/ for more information.
Thanks to Alberto Bertogli for the patch
2008-01-07 16:12:44 +00:00
Christian Heimes
04ae916fa2
Added interface to Windows' WSAIoctl and a simple example for a network sniffer.
2008-01-04 15:23:30 +00:00
Christian Heimes
e93237dfcc
#1629 : Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
2007-12-19 02:37:44 +00:00
Guido van Rossum
3c887b2802
Issue #1645 by Alberto Bertogli. Fix a comment.
2007-12-18 20:10:42 +00:00
Christian Heimes
e8954f8ce7
Backport of the PCbuild9 directory from the py3k branch.
...
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
2007-11-22 11:21:16 +00:00
Guido van Rossum
5397fd1a51
A patch from issue 1378 by roudkerk:
...
Currently on Windows set_error() make use of a large array which maps
socket error numbers to error messages.
This patch removes that array and just lets PyErr_SetExcFromWindowsErr()
generate the message by using the Win32 function FormatMessage().
2007-11-16 00:24:44 +00:00
Gregory P. Smith
e9fef694b4
Change socket.error to inherit from IOError rather than being a stand
...
alone class. This addresses the primary concern in
http://bugs.python.org/issue1706815
python-dev discussion here:
http://mail.python.org/pipermail/python-dev/2007-July/073749.html
I chose IOError rather than EnvironmentError as the base class since
socket objects are often used as transparent duck typed file objects
in code already prepared to deal with IOError exceptions.
also a minor fix:
urllib2 - fix a couple places where IOError was raised rather than URLError.
for better or worse, URLError already inherits from IOError so
this won't break any existing code.
test_urllib2net - replace bad ftp urls.
2007-09-09 23:36:46 +00:00
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
...
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
2007-07-21 06:55:02 +00:00
Hye-Shik Chang
82958f0d3b
Fix build on FreeBSD. Bluetooth HCI API in FreeBSD is quite different
...
from Linux's. Just fix the build for now but the code doesn't
support the complete capability of HCI on FreeBSD yet.
2007-06-05 18:16:52 +00:00
Neal Norwitz
ea3307bf3f
Fix method names. Will backport.
2007-03-31 18:54:18 +00:00
Facundo Batista
1fe9f968a2
Bug 1688393. Adds a control of negative values in
...
socket.recvfrom, which caused an ugly crash.
2007-03-28 03:45:20 +00:00
Martin v. Löwis
f228482735
Update 1432399 to removal of _BT_SOCKADDR_MEMB.
2007-02-14 11:30:07 +00:00
Martin v. Löwis
45423a7571
Patch #1432399 : Add HCI sockets.
2007-02-14 10:07:37 +00:00
Martin v. Löwis
b1cc1d407b
Patch #1657276 : Make NETLINK_DNRTMSG conditional.
...
Will backport.
2007-02-13 12:14:19 +00:00
Guido van Rossum
bb2cc698c1
Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept or
...
return negative numbers, per the underlying C implementation.
2007-01-14 17:03:32 +00:00
Andrew M. Kuchling
8d0baae7cd
Comment typo
2006-12-19 14:29:04 +00:00
Martin v. Löwis
046c4d13be
Patch #1544279 : Improve thread-safety of the socket module by moving
...
the sock_addr_t storage out of the socket object.
Will backport to 2.5.
2006-12-03 11:23:45 +00:00
Georg Brandl
9dc7b7ce82
Patch #1511317 : don't crash on invalid hostname info
2006-08-14 22:10:24 +00:00
Neal Norwitz
9b0ca79213
Patch #1519025 and bug #926423 : If a KeyboardInterrupt occurs during
...
a socket operation on a socket with a timeout, the exception will be
caught correctly. Previously, the exception was not caught.
2006-08-02 06:46:21 +00:00
Georg Brandl
cddabbf98a
Fix spelling.
2006-07-28 18:36:01 +00:00
Matt Fleming
ec9265094a
Allow socketmodule to compile on NetBSD -current, whose bluetooth API
...
differs from both Linux and FreeBSD. Accepted by Neal Norwitz.
2006-07-28 11:27:27 +00:00