summaryrefslogtreecommitdiff
path: root/Demo/pysvr/pysvr.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove some of the old demos. (Put a few somewhere else.)Georg Brandl2010-12-301-370/+0
|
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-249/+249
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Patch #524008: Fix portability bug on new POSIX hostsMartin v. Löwis2002-03-011-1/+1
|
* sprintf -> PyOS_snprintf in some "obviously safe" cases.Tim Peters2001-11-281-2/+3
| | | | | Also changed <>-style #includes to ""-style in some places where the former didn't make sense.
* Move our own getopt() implementation to _PyOS_GetOpt(), and use itThomas Wouters2000-11-031-4/+1
| | | | | | | | | regardless of whether the system getopt() does what we want. This avoids the hassle with prototypes and externs, and the check to see if the system getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to avoid name clashes. Add new include file to define the right symbols. Fix Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on Python to provide it.
* Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,Thomas Wouters2000-07-221-5/+5
| | | | | char**) and return an int even on PC platforms. If not, please fix PC/utils/makesrc.c ;-P
* Add -v flag. Comment duplicate Py_Finalize().Guido van Rossum1999-10-051-2/+8
|
* Add setsockopt...SO_REUSEADDR to avoid stupid waiting when killing andGuido van Rossum1997-12-251-1/+5
| | | | restarting the server.
* Use a counter instead of a Boolean to check for initialized; n callsGuido van Rossum1997-08-201-0/+2
| | | | to Py_Initialize will be undone by n calls to Py_Uninitialize.
* Print ps (process status) for us when starting a new thread.Guido van Rossum1997-08-021-9/+40
| | | | | | | | | | Even less shuffling of stdout (only at start of new interpreter). Interact properly with new interpreter initialization conventions (must use Py_Initialize/Py_Finalize *and* Py_NewInterpreter/Py_EndInterpreter). Probably more minor changes.
* Use Py_NewInterpreter() and friends. Remove saving/restoring of std files.Guido van Rossum1997-07-251-22/+16
|
* Added leading comment and security check.Guido van Rossum1997-07-191-5/+28
|
* New example of threaded embeddingGuido van Rossum1997-07-191-0/+312