Thanks for your help Johann.<br>  <br>  Xuan<br><br><b><i>Johann Borck &lt;johann.borck@densedata.com&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">  xuan tang wrote:<br><br>&gt; I am trying to create a TCP server using twisted reactor. I want to<br>&gt; stop the server from accepting TCP bind requests (and restart it<br>&gt; later), but for some reason I don't want to use reactor.stop(). Is<br>&gt; there another way to do it?<br><br>reactor.listenXXX returns the an IListeningPort-implementing object on<br>which you can call stopListening() and startListening(). When you're<br>using the twisted.application stuff you can call<br>stopService()/startService() on your Service instance.<br><br>Johann<br><br><br>_______________________________________________<br>Twisted-Python mailing
 list<br>Twisted-Python@twistedmatrix.com<br>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python<br></blockquote><br><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com