[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/README.txt some more doc fixes
Alex Smith
alex at zope.com
Wed Jun 30 16:58:38 EDT 2010
Log message for revision 114035:
some more doc fixes
Changed:
U zc.ngi/trunk/src/zc/ngi/README.txt
-=-
Modified: zc.ngi/trunk/src/zc/ngi/README.txt
===================================================================
--- zc.ngi/trunk/src/zc/ngi/README.txt 2010-06-30 20:39:12 UTC (rev 114034)
+++ zc.ngi/trunk/src/zc/ngi/README.txt 2010-06-30 20:58:38 UTC (rev 114035)
@@ -60,7 +60,7 @@
Network clients make connections to and then use these connections to
communicate with servers. To do so, a client must be provided with an
-IConnector implantation. How this happens is outside the scope of
+IConnector implementation. How this happens is outside the scope of
the NGI. An IConnector implementation could, for example, be provided
via the Zope component architecture, or via pkg_resources entry
points.
@@ -236,7 +236,7 @@
... def handle_close(self, connection, reason):
... print 'server closed:', reason
-Out EchoServer *class* provides IServer and implement IInputHandler.
+Our EchoServer *class* provides IServer and implements IInputHandler.
To use a server, we need a listener. We'll use the use the testing
listener:
@@ -305,7 +305,7 @@
>>> connection2 in list(listener.connections())
True
-Server connections have a control attribute that is the connections
+Server connections have a control attribute that is the connection's
server control:
>>> connection.control is listener
@@ -381,7 +381,7 @@
===========
If the output from an application consists of short lines of text, a
-TextConnection can be used. A TextConnection simply outputs it's data
+TextConnection can be used. A TextConnection simply outputs its data
directly.
>>> connection = zc.ngi.testing.TextConnection()
@@ -412,7 +412,7 @@
handler. Listeners created with the zc.ngi.testing.listener class have a
connect method that can be used to create connections to a server.
-Let's connect out echo server and client. First, we'll create out
+Let's connect our echo server and client. First, we'll create our
server using the listener constructor:
>>> listener = zc.ngi.testing.listener(EchoServer)
@@ -434,7 +434,7 @@
.. Peer connectors
Below is an older API for connecting servers and clients in a
- testing environment. The mechanisms defined above are prefered.
+ testing environment. The mechanisms defined above are preferred.
The zc.ngi.testing.peer function can be used to create a
connection to a peer handler. To illustrate, we'll set up an echo
@@ -455,7 +455,7 @@
UDP Support
===========
-To send a UDP message, just use an implementations udp method:
+To send a UDP message, just use an implementation's udp method:
>>> zc.ngi.testing.udp(('', 42), "hello")
More information about the checkins
mailing list