Changes between Version 3 and Version 4 of Twistedの短いソースコード集


Ignore:
Timestamp:
09/11/06 11:22:31 (13 years ago)
Author:
nakiki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Twistedの短いソースコード集

    v3 v4  
    4141{{{ 
    4242#!python 
     43from twisted.internet import reactor, protocol 
     44 
    4345class MyProtocol(protocol.Protocol): 
    4446  made = 0 
     
    6365 
    6466client = TCPClient() 
    65 reactor.connectTCP('www.accense.com', 80, client) 
     67reactor.connectTCP('127.0.0.1', 12345, client) 
    6668while not client.protocol or not client.protocol.closed: 
    6769  reactor.iterate()