summaryrefslogtreecommitdiff
path: root/Modules/socketmodule.c
AgeCommit message (Collapse)AuthorLines
1995-01-10cosmetic changes so these modules will work with the strict new naming schemeGuido van Rossum-5/+5
1995-01-10better test for existence of hstrerror()Guido van Rossum-2/+2
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
Setup.in: clarified Tk comments somewhat. structmodule.c: use memcpy() instead of double precision assignment.
1995-01-02Another bulky set of minor changes.Guido van Rossum-23/+131
Note addition of gethostbyaddr() and improved repr() for sockets, renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
1994-10-10new styleGuido van Rossum-280/+279
1994-09-29 * Modules/xxmodule.c: integrated with xxobject.c by JackGuido van Rossum-0/+12
* Modules/(posix,socket}module.c: more NT changes
1994-09-07Setup.in: added tkinter; rearranged the definition of PYTHONPATH soGuido van Rossum-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.
1994-08-18Changes to make it work and compile on NT, by Mark Hammond.Guido van Rossum-99/+125
(NT changes for posixmodule.c re-invented by Guido.)
1994-08-05 * Modules/{Setup.in,Makefile.pre.in}: renamed some modules toGuido van Rossum-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
1994-08-01Merge alpha100 branch back to main trunkGuido van Rossum-67/+48
1993-11-23* timemodule.c: Add hack for Solaris 2.Guido van Rossum-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.
1993-06-17* Added gmtime/localtime/mktime and SYSV timezone globals to timemodule.c.Guido van Rossum-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().
1993-05-25* socketmodule.c: fix long-standing bug in recvfrom() -- addrlenGuido van Rossum-2/+5
wasn't initialized.
1993-05-25* classobject.c: in instance_getattr, don't make a method out of aGuido van Rossum-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.)
1993-04-07* Microscopic corrections to make things compile on the Cray APP.Guido van Rossum-0/+9
* Removed one use of $> in Makefile and warned about others. Added configurable lines in Makefile to change CC and AR.
1993-03-16* Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum-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.
1993-02-05* ceval.c: ifdef out the last argument passing compat hack.Guido van Rossum-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
1992-12-14* mymalloc.h: always allocate one extra byte, since some malloc'sGuido van Rossum-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().
1992-12-08socketmodule.c: added socket.fromfd(fd, family, type, [proto]);Guido van Rossum-8/+32
converted socket() to use of getargs().
1992-11-26* config.c: Added audioop to lists.Guido van Rossum-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)
1992-09-08Made struct a standard built-in module; added string args to {set,get}sockopt;Guido van Rossum-16/+48
added gl.gversion().
1992-08-05* Makefile: cosmeticsGuido van Rossum-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
1992-08-05Sometimes, recvfrom() returns an empty address; this is not an error.Guido van Rossum-26/+10
Also, get rid of makepair() in favor of mkvalue().
1992-06-23Changes for new UNIX-specific built-in module 'select' and new header forGuido van Rossum-6/+16
interfaces to variants of select() system call, "myselect.h". This includes adding fileno() methods to files, sockets and stdwin.
1992-06-12Some UNIX types want the exact size of the address structureGuido van Rossum-1/+35
1992-06-05Added {get,set}sockopt(). allowbroadcast is now obsolete.Guido van Rossum-2/+54
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1992-03-27Lint fixes.Guido van Rossum-3/+5
1992-01-27Cal get*Str*arg() instead of get*str*arg(), until the code is fixed.Guido van Rossum-8/+10
1991-11-27AIX fix.Guido van Rossum-1/+2
1991-10-20Added allowbroadcast()Guido van Rossum-1/+23
1991-09-10Make Socktype global so old and new compilers will like it.Guido van Rossum-6/+4
1991-07-27Add gethostname() and s.avail().Guido van Rossum-3/+52
1991-07-01Connection sockets now have the proper family/type/proto values.Guido van Rossum-5/+8
Fix argument handling bug in socket(f,t,p) call. Fix some comments.
1991-06-27Many changes to the interface, and added comments.Guido van Rossum-78/+326
1991-06-25Initial revisionGuido van Rossum-0/+494