Jeremy Hylton
80961f3ca9
Fix apparently trivial buffer overflow (SF bug 1060396).
...
memset() wrote one past the end of the buffer, which was likely to be unused padding or a yet-to-be-initialized local variable. This routine is already tested by test_socket.
2004-11-07 14:24:25 +00:00
Michael W. Hudson
3079391b8d
Just remove the #include of signal.h. That it was C++-commented out
...
was a mistake of mine in updating patch #975056 (I think).
2004-10-14 13:27:14 +00:00
Neal Norwitz
f7c8d9320b
Use C89 style comment for old compilers
2004-10-14 03:48:30 +00:00
Anthony Baxter
9ceaa72ebe
Patch #975056 - fixes for restartable signals on *BSD. In addition,
...
a few remaining calls to signal() were converted to PyOS_setsig().
2004-10-13 14:48:50 +00:00
Raymond Hettinger
87de0ca741
Silence a compiler warning by supplying the correct argument type to
...
the htons() function.
2004-09-28 02:19:40 +00:00
Trent Mick
8ea5bdf784
Patch for compilation on IRIX from rwgk on http://python.org/sf/728330
2004-09-13 17:48:41 +00:00
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.
2004-09-07 17:48:26 +00:00
Dave Cole
e8bbfe4e63
Patch #1015012 . Improve markup and punctuation in libsocket.tex
2004-08-26 00:51:16 +00:00
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.
2004-08-25 06:24:58 +00:00
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.
2004-08-23 05:16:23 +00:00
Dave Cole
0fc8575412
Removed unnecessary calls to signal() to ignore SIGPIPE. SIGPIPE is ignored
...
in initsigs() inside pythonrun.c.
2004-08-23 04:54:53 +00:00
Jason Tishler
c246cb76e6
Bug #1001857 : socketmodule does not build under cygwin
...
Restore clean building under Cygwin.
2004-08-09 13:25:59 +00:00
Dave Cole
331708b226
Patch #1003700 : Add socketpair function to socket module.
2004-08-09 04:51:41 +00:00
Raymond Hettinger
cbcff93d49
Restore compilation on MSVC++ 6.0
2004-08-03 08:52:46 +00:00
Mark Hammond
a57ec93b93
Fix [ 1001018 ]: Windows: setdefaulttimeout causes unnecessary timeouts on
...
connect error
2004-08-03 05:06:26 +00:00
Martin v. Löwis
81aec4bb80
Patch #984654 : Add more address family constants.
2004-07-19 17:01:20 +00:00
Andrew M. Kuchling
b8e1717041
[Patch #947352 from Jason Andryuk] Add support for AF_PACKET hardware addresses
2004-07-10 23:39:35 +00:00
Andrew M. Kuchling
42851ab490
[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant
2004-07-10 14:19:21 +00:00
Andrew MacIntyre
5a8b4593d3
OS/2 EMX needs addrinfo.h for code included from getaddrinfo.c
2004-07-07 14:02:59 +00:00
Barry Warsaw
11b91a0ea3
Added socket.getservbyport(), and make its second argument and that of
...
getservbyname() optional. Update the tests and the docs.
2004-06-28 00:50:43 +00:00
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.
2004-06-03 09:24:42 +00:00
Martin v. Löwis
04697e89b9
Patch #924294 : Do not check for AF_INET6 if it is not defined.
...
Will backport to 2.3.
2004-06-02 12:35:29 +00:00
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...
2004-05-26 17:06:31 +00:00
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.
2004-04-11 12:03:57 +00:00
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.
2004-04-04 07:13:49 +00:00