コード例 #1
0
ファイル: mini_http.py プロジェクト: thangduong/kamaelia
 def main(self):
     #Create something to listen for a connection
     #Create something to give you files
     #Bolt them together
     #Go!
     server = SimpleServer(protocol=self.localFileServerFactory, port=8042)
     server.activate()
     scheduler.run.runThreads()
コード例 #2
0
ファイル: mini_http.py プロジェクト: casibbald/kamaelia
 def main(self):
     #Create something to listen for a connection
     #Create something to give you files
     #Bolt them together
     #Go!
     server = SimpleServer( protocol = self.localFileServerFactory, port = 8042)
     server.activate()
     scheduler.run.runThreads()