cpython/Demo/sockets
Walter Dörwald 70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
..
README Add simple Unix socket example by Piet van Oostrum. 1998-01-28 16:54:00 +00:00
broadcast.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
echosvr.py Jeremy missed a bind() call when updating these demos. ;) 2000-08-25 16:03:27 +00:00
finger.py update demo scripts to use addr tuples for bind and connect 2000-08-25 15:38:41 +00:00
ftp.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
gopher.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
mcast.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
radio.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
rpython.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
rpythond.py update demo scripts to use addr tuples for bind and connect 2000-08-25 15:38:41 +00:00
telnet.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
throughput.py update demo scripts to use addr tuples for bind and connect 2000-08-25 15:38:41 +00:00
udpecho.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
unicast.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
unixclient.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
unixserver.py To be a good citizen, it should really delete its socket when done. 2003-08-01 14:20:02 +00:00

README

This directory contains some demonstrations of the socket module:

broadcast.py	 	Broadcast the time to radio.py.
echosvr.py		About the simplest TCP server possible.
finger.py		Client for the 'finger' protocol.
ftp.py			A very simple ftp client.
gopher.py		A simple gopher client.
radio.py		Receive time broadcasts from broadcast.py.
telnet.py		Client for the 'telnet' protocol.
throughput.py		Client and server to measure TCP throughput.
unixclient.py		Unix socket example, client side
unixserver.py		Unix socket example, server side
udpecho.py		Client and server for the UDP echo protocol.

The following file is only relevant on SGI machines (or other systems
that support multicast):

mcast.py		A Python translation of
			/usr/people/4Dgifts/examples/network/mcast.c
			(Note that IN.py is in ../../lib/sgi.)

See also ../../lib/nntp.py for another example of socket code.