[Twisted-Python] twisted, nc and LineReceiver

Christopher Armstrong radix at twistedmatrix.com
Wed Nov 6 14:01:16 EST 2002

On Wed, Nov 06, 2002 at 12:27:52PM -0600, Glyph Lefkowitz wrote:
> On Wed, 6 Nov 2002 19:11:52 +0100, Alexandre Fayolle
> <alexandre.fayolle at free.fr> wrote:
> > Now, if I use telnet to connect to both version of the server, I can
> > type some data, press return and get the answer back. This is great.
> > However, if I use nc send the data, the twisted-based server sees nothing
> > (lineReceived is not called!)
> Sounds like a CRLF versus CR issue.  Have you checked for that? :-)

Indeed. Netcat sends only \n, not \r. See the `delimiter' attribute of
the LineReceiver class.

			Christopher Armstrong
		    << radix at twistedmatrix.com >>

More information about the Twisted-Python mailing list