summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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().
* * Makefile: cosmeticsGuido van Rossum1992-08-051-36/+74
| | | | | | | | | | | | | | | | | | | | | | | | | * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
* Sometimes, recvfrom() returns an empty address; this is not an error.Guido van Rossum1992-08-051-26/+10
| | | | Also, get rid of makepair() in favor of mkvalue().
* Changes for new UNIX-specific built-in module 'select' and new header forGuido van Rossum1992-06-231-6/+16
| | | | | interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
* Some UNIX types want the exact size of the address structureGuido van Rossum1992-06-121-1/+35
|
* Added {get,set}sockopt(). allowbroadcast is now obsolete.Guido van Rossum1992-06-051-2/+54
|
* Copyright for 1992 addedGuido van Rossum1992-04-051-1/+1
|
* Lint fixes.Guido van Rossum1992-03-271-3/+5
|
* Cal get*Str*arg() instead of get*str*arg(), until the code is fixed.Guido van Rossum1992-01-271-8/+10
|
* AIX fix.Guido van Rossum1991-11-271-1/+2
|
* Added allowbroadcast()Guido van Rossum1991-10-201-1/+23
|
* Make Socktype global so old and new compilers will like it.Guido van Rossum1991-09-101-6/+4
|
* Add gethostname() and s.avail().Guido van Rossum1991-07-271-3/+52
|
* Connection sockets now have the proper family/type/proto values.Guido van Rossum1991-07-011-5/+8
| | | | | Fix argument handling bug in socket(f,t,p) call. Fix some comments.
* Many changes to the interface, and added comments.Guido van Rossum1991-06-271-78/+326
|
* Initial revisionGuido van Rossum1991-06-251-0/+494