cpython/Demo/sockets
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
number of tests, all because of the codecs/_multibytecodecs issue described
here (it's not a Py3K issue, just something Py3K discovers):
http://mail.python.org/pipermail/python-dev/2006-April/064051.html

Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
tests that are expected to break are:

test_codecencodings_cn
test_codecencodings_hk
test_codecencodings_jp
test_codecencodings_kr
test_codecencodings_tw
test_codecs
test_multibytecodec

This merge fixes an actual test failure (test_weakref) in this branch,
though, so I believe merging is the right thing to do anyway.
2006-04-21 10:40:58 +00:00
..
broadcast.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
echosvr.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
finger.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
ftp.py Get rid of a bunch more raw_input references 2006-03-17 06:49:51 +00:00
gopher.py Get rid of a bunch more raw_input references 2006-03-17 06:49:51 +00:00
mcast.py Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 2006-04-21 10:40:58 +00:00
radio.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
README
rpython.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
rpythond.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
telnet.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
throughput.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
udpecho.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
unicast.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
unixclient.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
unixserver.py Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00

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.