Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
some more doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Smith committed Jun 30, 2010
1 parent e94f5dc commit 436a18f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/zc/ngi/README.txt
Expand Up @@ -60,7 +60,7 @@ Implementing Network Clients

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.
Expand Down Expand Up @@ -236,7 +236,7 @@ implement a simple echo server:
... 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:
Expand Down Expand Up @@ -305,7 +305,7 @@ access to the active connections:
>>> 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
Expand Down Expand Up @@ -381,7 +381,7 @@ Text output
===========

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()
Expand Down Expand Up @@ -412,7 +412,7 @@ It is sometimes useful to connect a client handler and a server
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)
Expand All @@ -434,7 +434,7 @@ Then we'll use the connect method on the listener:
.. 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
Expand All @@ -455,7 +455,7 @@ Then we'll use the connect method on the listener:
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")

Expand Down

0 comments on commit 436a18f

Please sign in to comment.