Neal Norwitz
f7c8d9320b
Use C89 style comment for old compilers
22 years ago
Anthony Baxter
9ceaa72ebe
Patch #975056 - fixes for restartable signals on *BSD. In addition,
a few remaining calls to signal() were converted to PyOS_setsig().
22 years ago
Raymond Hettinger
87de0ca741
Silence a compiler warning by supplying the correct argument type to
the htons() function.
22 years ago
Trent Mick
8ea5bdf784
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
22 years ago
Trent Mick
a708d6e3b0
Apply patch from http://python.org/sf/728330 to fix socket module compilation on Solaris 2.6, HP-UX 11, AIX 5.1 and (possibly) some IRIX versions.
22 years ago
Dave Cole
e8bbfe4e63
Patch #1015012 . Improve markup and punctuation in libsocket.tex
22 years ago
Martin v. Löwis
b92b7ed9d6
Back out 1.289, which breaks platforms needing addrinfo.h, and
1.293, 1.298, and 1.300, which have tried to fix this for specific
platforms.
22 years ago
Dave Cole
07fda7e3a0
Updated the socketpair() docstring and documentation to explain that the
default famility is AF_UNIX if defined for the platform, otherwise the
default is AF_INET.
22 years ago
Dave Cole
0fc8575412
Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored
in initsigs() inside pythonrun.c.
22 years ago
Jason Tishler
c246cb76e6
Bug #1001857 : socketmodule does not build under cygwin
Restore clean building under Cygwin.
22 years ago
Dave Cole
331708b226
Patch #1003700 : Add socketpair function to socket module.
22 years ago
Raymond Hettinger
cbcff93d49
Restore compilation on MSVC++ 6.0
22 years ago
Mark Hammond
a57ec93b93
Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts on
connect error
22 years ago
Martin v. Löwis
81aec4bb80
Patch #984654 : Add more address family constants.
22 years ago
Andrew M. Kuchling
b8e1717041
[Patch #947352 from Jason Andryuk] Add support for AF_PACKET hardware addresses
22 years ago
Andrew M. Kuchling
42851ab490
[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant
22 years ago
Andrew MacIntyre
5a8b4593d3
OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c
22 years ago
Barry Warsaw
11b91a0ea3
Added socket.getservbyport(), and make its second argument and that of
getservbyname() optional. Update the tests and the docs.
22 years ago
Martin v. Löwis
558d9bf528
Patch #929192 : Improvements to bluetooth support.
Added setbdaddr and makebdaddr.
Extended makesockaddr to understand Bluetooth addresses.
Changed getsockaddr to expect the Bluetooth addresses as a string,
not a six element tuple.
Reformatted some of the Bluetooth code to be more consistent with PEP 7.
22 years ago
Martin v. Löwis
04697e89b9
Patch #924294 : Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.
22 years ago
Michael W. Hudson
76b8cc84a4
Band-aid type fix for
[ 728330 ] Don't define _SGAPI on IRIX
The Right Thing would be nice, for now this'll do. At least it isn't
going to break anything *other* than IRIX...
22 years ago
Andrew MacIntyre
daedf21852
Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
fork() can't handle the stress.
22 years ago
Andrew MacIntyre
d12dfbbcd9
OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/. Unlike Unix systems, this
file never exists in the file system.
22 years ago
Brett Cannon
06c34798df
Make socket.sslerror a subclass of socket.error .
Added socket.error to the socket module's C API.
23 years ago
Anthony Baxter
5d7c06720d
Make socketmodule compile again on a modern Linux (that supports Bluetooth).
The Bluetooth code was obviously never tested on Linux.
23 years ago
Skip Montanaro
7befb9966e
remove support for missing ANSI C header files (limits.h, stddef.h, etc).
23 years ago
Hye-Shik Chang
81268608bf
Add FreeBSD support for bluetooth sockets.
(SF Patch #888148 , reviewed by loewis)
23 years ago
Martin v. Löwis
12af0485f8
Patch #874083 : Bluetooth support for socket module.
23 years ago
Martin v. Löwis
da91d02461
Add IPV6_ socket options from RFCs 3493 and 3542. Fixes #867012 .
23 years ago
Hye-Shik Chang
a7b673f47c
Fix erroneus argument parsing of socket.htons() on 64bit big endian
machines.
23 years ago
Martin v. Löwis
94681fc4a3
Patch #849595 : Add socket.shutdown() constants.
23 years ago
Jack Jansen
4bae2d5e46
Getting rid of code dependent on GUSI or the MetroWerks compiler.
23 years ago
Walter Dörwald
f0dfc7ac5c
Fix a bunch of typos in documentation, docstrings and comments.
(From SF patch #810751 )
23 years ago
Raymond Hettinger
8ae4689657
Simplify and speedup uses of Py_BuildValue():
* Py_BuildValue("(OOO)",a,b,c) --> PyTuple_Pack(3,a,b,c)
* Py_BuildValue("()",a) --> PyTuple_New(0)
* Py_BuildValue("O", a) --> Py_INCREF(a)
23 years ago
Anthony Baxter
bab23cfc26
made the SGI INET_ADDRSTRLEN define apply for any compiler on Irix. Both the
SGI compiler and GCC seem to need this.
23 years ago
Martin v. Löwis
a0f1734e44
Patch #813445 : Add missing socket.IPPROTO_IPV6. Backported to 2.3.
23 years ago
Martin v. Löwis
5db099a4fe
Release host name memory. Fixes #783312 . Will backport to 2.3.
23 years ago
Martin v. Löwis
106490915b
Patch #781722 : Reject AF_INET6 if IPv6 is disabled. Will backport to 2.3.
23 years ago
Jeremy Hylton
fb509a36c8
Get socketmodule compiling on IRIX 6.5.10.
I don't think the fix here is very good, but I'm not sure what would
be better. In particular, we should not be defining _SGIAPI, but lots
of things break if we remove it.
23 years ago
Mark Hammond
14350ab006
Fix [ 766669 ] Consistent GPF on exit
Use Py_AtExit instead of atexit so we are called during Py_Finalize()
rather than during DLL teardown.
23 years ago
Raymond Hettinger
ef7343c6cd
SF patch #760257 : add socket.timeout exception
(Contributed by Bob Halley)
Added a new exception, socket.timeout so that timeouts can be differentiated
from other socket exceptions.
Docs, more tests, and newsitem to follow.
23 years ago
Martin v. Löwis
a94568a753
Patch #734231 : Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.
23 years ago
Just van Rossum
16e426bb15
Yet another addition to [731644]: only use the lock if thread-support
is enabled.
23 years ago
Just van Rossum
09aecd7a0d
Addition to [731644]: also use the lock when using the getaddrinfo
emulation (ie. when HAVE_GETADDRINFO isn't defined).
23 years ago
Just van Rossum
1040d2ce7d
[ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect
access with lock on those platforms that getaddrinfo() isn't (known to be)
thread-safe. Thanks to MvL for mentoring this patch.
23 years ago
Martin v. Löwis
e941617671
Patch #724588 : Check whether the address of hstrerror and inet_pton can
be taken, and define NI_MAX{HOST|SERV} if necessary.
23 years ago
Martin v. Löwis
c16f3bd8a3
Patch #708495 : Port more stuff to OpenVMS.
23 years ago
Anthony Baxter
0e85f9d6fd
Patch 731209: Restore socketmodule's behaviour with dotted quad addresses
to that of Python2.1. Such nnn.nnn.nnn.nnn addresses are just used directly,
not passed to the resolver for a pointless lookup.
23 years ago
Martin v. Löwis
fccac2e61a
Patch #725942 : Always rename emulation functions.
23 years ago
Guido van Rossum
47dfa4a89a
Patch by Jp Calderone:
- The socket module now provides the functions inet_pton and inet_ntop
for converting between string and packed representation of IP addresses.
See SF patch #658327 .
This still needs a bit of work in the doc area, because it is not
available on all platforms (especially not on Windows).
23 years ago