summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Thanks to Chris Herborth, the thread primitives now have proper Py*Guido van Rossum1998-12-211-8/+8
| | | | | names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* Use the t# format where appropriate. Greg Stein.Guido van Rossum1998-10-081-1/+1
|
* Renamed thread.h to pythread.h.Guido van Rossum1998-10-011-1/+1
|
* Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,Guido van Rossum1998-09-131-4/+0
| | | | discovered by Marc Lemburg.
* Removed unused variables.Guido van Rossum1998-08-061-4/+0
|
* Changes for BeOS, QNX and long long, by Chris Herborth.Guido van Rossum1998-08-041-3/+40
|
* Added gethostbyname_ex(), which returns the same kind of data asGuido van Rossum1998-08-041-37/+99
| | | | | | | | gethostbyaddr(). (Plain gethostbyname() returns only the IP address.) This moves the code shared by gethostbyaddr() and gethostbyname_ex() to a subroutine. Original patch by Dan Stromberg; some tweaks by GvR.
* Added copious docstrings, plus two minor layout tweaks.Guido van Rossum1998-07-071-39/+309
|
* Some systems (e.g. Linux) use enums for some symbols (like IPPROTO_IP)Guido van Rossum1998-05-281-0/+11
| | | | | | so that our #ifdef test has the wrong effect. Substitute hardcoded values for some important symbols (but not for the whole range -- some are pretty obscure so it's not worth it).
* Threading speedup patches by Christopher Lindblad <cjl@infoseek.com>.Guido van Rossum1998-04-091-2/+44
|
* Left-aligned preprocessor directives and changed C++ comments to CGuido van Rossum1997-12-021-9/+9
| | | | comments.
* os2 patch by Jeff RushGuido van Rossum1997-11-221-15/+116
|
* PySocketSock_methods: Added "connect_ex" so the method can actually beBarry Warsaw1997-11-201-0/+1
| | | | called!
* Add s.connect_ex() which returns errno instead of raising an exception.Guido van Rossum1997-11-191-0/+20
|
* Apply two changes, systematically:Guido van Rossum1997-10-011-9/+8
| | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code!
* socket_type -> SocketTypeGuido van Rossum1997-06-021-2/+2
|
* Add socket.socket_type, as discussed on c.l.p.Guido van Rossum1997-05-211-0/+5
|
* Remove the last three uses of PyArg_GetInt() from the source.Guido van Rossum1997-05-151-3/+3
|
* In makesockaddr(), if we don't know the address family, don't raise anGuido van Rossum1997-05-071-3/+6
| | | | exception -- return it as a tuple. Seems useful in promiscuous mode.
* Tweaks to keep the Microsoft compiler quier.Guido van Rossum1997-04-091-1/+3
|
* Check of return values and proper error handling.Barry Warsaw1997-01-031-30/+60
|
* Added the new getprotobyname() call to the module overview at the top.Guido van Rossum1996-12-191-0/+1
|
* Added getprotobyname() interface.Guido van Rossum1996-12-191-0/+24
|
* Added extern decl for gethostname() to keep gcc -Wall happy.Guido van Rossum1996-12-101-0/+4
|
* Keep gcc -Wall happy.Guido van Rossum1996-12-051-0/+5
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* Don't close an already closed socket.Guido van Rossum1996-10-121-3/+5
|
* Slightly different Windows ifdefsGuido van Rossum1996-06-281-4/+4
|
* changed windows test symbols; removed debug printf from socketsGuido van Rossum1996-06-261-10/+9
|
* More rational support for Windows (tested on Roj's NT 3.5 machine only).Guido van Rossum1996-06-201-141/+117
| | | | Use PyArg_ParseTuple() where it makes sense.
* ntohs, ntohl, htons, htonl -- thanks to LanceGuido van Rossum1996-06-121-0/+56
|
* more changes for Windows, sighGuido van Rossum1996-06-121-29/+57
|
* Calculate length of AF_UNIX addr struct portably in getsockaddrarg().Guido van Rossum1996-06-111-1/+1
|
* Get rid of obsolete allowbroadcast().Guido van Rossum1996-06-111-23/+2
| | | | Avoid core dumps in resizestring().
* Windows/PC changesGuido van Rossum1996-05-231-7/+40
|
* remove unused variablesGuido van Rossum1996-02-271-9/+2
|
* Include GUSI.h if using gusi-socketsJack Jansen1996-02-141-0/+5
|
* clear addr buffer before calling getsocknameGuido van Rossum1996-01-121-0/+1
|
* plug some leaksGuido van Rossum1995-09-131-2/+6
|
* add setblocking(); NT changes; null-terminate Unix pathGuido van Rossum1995-06-141-12/+33
|
* fixed up comments describing interfaceGuido van Rossum1995-03-161-19/+18
|
* mode and optional bufsize for makefile()Guido van Rossum1995-03-141-6/+15
|
* add INADDR_* symbolsGuido van Rossum1995-02-171-0/+37
|
* add socket related constantsGuido van Rossum1995-02-071-0/+202
|
* cosmetic changes so these modules will work with the strict new naming schemeGuido van Rossum1995-01-101-5/+5
|
* better test for existence of hstrerror()Guido van Rossum1995-01-101-2/+2
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
| | | | | Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
* Another bulky set of minor changes.Guido van Rossum1995-01-021-23/+131
| | | | | Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
* new styleGuido van Rossum1994-10-101-280/+279
|