cpython/Demo/sockets
Guido van Rossum 4f1a6187a5 Ofir Reichenberg suggested to apply htonl() to grpaddr in openmcastsock().
Also got rid of unnecessary use of eval() and regsub.gsub().
1999-08-07 14:01:05 +00:00
..
ChangeLog
README Add simple Unix socket example by Piet van Oostrum. 1998-01-28 16:54:00 +00:00
broadcast.py no longer need to include IN.py or SOCKET.py 1995-03-04 22:57:56 +00:00
echosvr.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
finger.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
ftp.py improve treatment of multi-line replies, ignore empty lines 1995-01-12 12:42:09 +00:00
gopher.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
mcast.py Ofir Reichenberg suggested to apply htonl() to grpaddr in openmcastsock(). 1999-08-07 14:01:05 +00:00
radio.py fix bind arg 1994-10-08 19:13:48 +00:00
rpython.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
rpythond.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
telnet.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
throughput.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
udpecho.py /usr/local/bin/python -> /usr/bin/env python 1996-11-27 19:52:01 +00:00
unicast.py unicast pendant for broadcast.py 1996-08-21 20:11:55 +00:00
unixclient.py Add simple Unix socket example by Piet van Oostrum. 1998-01-28 16:54:00 +00:00
unixserver.py Add Piet van Oostrum's name to the comments. 1998-01-29 04:04:04 +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.