On Tue, Sep 27, 2011 at 4:33 PM, David Kao <[email protected]> wrote:

> When the call to listenTCP returns, is the server actively waiting for
> TCP connections?
>
Looking at the code
here<http://twistedmatrix.com/trac/browser/tags/releases/twisted-11.0.0/twisted/internet/tcp.py#L857>,
I would think so.


>
> Let's say reactor.run() has been called. Can I do the following
> back-to-back?
>
> reactor.listenTCP(4321, serverfactory)
> reactor.connectTCP("localhost", 4321, clientfactory)


> Basically, I am almost starting a server and a client back-to-back
> that connects to each other.

Just curious, why are you doing this?


> I would like to know if the server is in
> "listening" state before my client attempts to connect.
>
> Thanks.
>
> David Kao
>

--Enrique
_______________________________________________
Twisted-Python mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to