summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* * Modules/xxmodule.c: integrated with xxobject.c by JackGuido van Rossum1994-09-291-0/+12
| | | | * Modules/(posix,socket}module.c: more NT changes
* Setup.in: added tkinter; rearranged the definition of PYTHONPATH soGuido van Rossum1994-09-071-0/+33
| | | | | | | | | | | | | | that the module-specific components are in the section for that module. cursesmodule.c: patched it so it actually works. tkintermodule.c: call Py_AtExit instead of atexit(). signalmodule.c: converted to new naming style; added BGN/END SAVE around pause() call. socketmodule.c: added setblocking() after Tommy Burnette.
* Changes to make it work and compile on NT, by Mark Hammond.Guido van Rossum1994-08-181-99/+125
| | | | (NT changes for posixmodule.c re-invented by Guido.)
* * Modules/{Setup.in,Makefile.pre.in}: renamed some modules toGuido van Rossum1994-08-051-0/+4
| | | | | | | | | | shorter names (dropped the "module" from the name): sunaudiodev, imgformat, audioop, imageop, imgfile * Modules/stropmodule.c (strop_rindex): make rindex('abc', '') do the right thing (i.e. return 3 instead of 0) * Modules/socketmodule.c: disabled allowbroadcast() socket method
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-011-67/+48
|
* * timemodule.c: Add hack for Solaris 2.Guido van Rossum1993-11-231-6/+7
| | | | | | | | | | | | | | | * posixmodule.c: don't prototype getcwd() -- it's not portable... * mappingobject.c: double-check validity of last_name_char in dict{lookup,insert,remove}. * arraymodule.c: need memmove only for non-STDC Suns. * Makefile: comment out HTML_LIBS and XT_USE by default * pythonmain.c: don't prototype getopt() -- it's not standardized * socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to recvfrom() to (ANY*). * pythonrun.c (initsigs): fix prototype, make it static * intobject.c (LONG_BIT): only #define it if not already defined * classobject.[ch]: remove all references to unused instance_convert() * mappingobject.c (getmappingsize): Don't return NULL in int function.
* * Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum1993-06-171-2/+2
| | | | | | | | | | Added $(SYSDEF) to its build rule in Makefile. * cgensupport.[ch], modsupport.[ch]: removed some old stuff. Also changed files that still used it... And made several things static that weren't but should have been... And other minor cleanups... * listobject.[ch]: add external interfaces {set,get}listslice * socketmodule.c: fix bugs in new send() argument parsing. * sunaudiodevmodule.c: added flush() and close().
* * socketmodule.c: fix long-standing bug in recvfrom() -- addrlenGuido van Rossum1993-05-251-2/+5
| | | | wasn't initialized.
* * classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum1993-05-251-27/+30
| | | | | | | | | | function found as instance data. * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite argument parsing in send/recv. * More changes related to access (terminology change: owner instead of class; allow any object as owner; local/global variables are owned by their dictionary, only class/instance data is owned by the class; "from...import *" now only imports objects with public access; etc.)
* * Microscopic corrections to make things compile on the Cray APP.Guido van Rossum1993-04-071-0/+9
| | | | | * Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-2/+2
| | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
* * ceval.c: ifdef out the last argument passing compat hack.Guido van Rossum1993-02-051-11/+20
| | | | | * Fixed memory leaks in socket, select and sv modules: mkvalue("O", v) does INCREF(v) so if v is brand new it should be XDECREF'd
* * mymalloc.h: always allocate one extra byte, since some malloc'sGuido van Rossum1992-12-141-0/+4
| | | | | | | | | | | | | return NULL for malloc(0) or realloc(p, 0). (This should be done differently than wasting one byte, but alas...) * Moved "add'l libraries" option in Makefile to an earlier place. * Remove argument compatibility hacks (b) and (c). * Add grey2mono, dither2mono and mono2grey to imageop. * Dup the fd in socket.fromfd(). * Added new modules mpz, md5 (by JH, requiring GNU MP 1.2). Affects Makefile and config.c. * socketmodule.c: added socket.fromfd(fd, family, type, [proto]), converted socket() to use of getargs().
* socketmodule.c: added socket.fromfd(fd, family, type, [proto]);Guido van Rossum1992-12-081-8/+32
| | | | converted socket() to use of getargs().
* * config.c: Added audioop to lists.Guido van Rossum1992-11-261-0/+48
| | | | | | | | | * Makefile: change default source directory * socketmodule.c: added getsockname and getpeername * bltinmodule.c: corrected typo in type() error message * Added new built-in functions str() and repr(): repr(x) == `x`; str(x) == x if x is a string, otherwise str(x) == repr(x). * Added joinfields to stropmodule.c (string.join calls joinfields now)
* Made struct a standard built-in module; added string args to {set,get}sockopt;Guido van Rossum1992-09-081-16/+48
| | | | added gl.gversion().