author | Tero Marttila <terom@fixme.fi> |
Sat, 06 Nov 2010 16:02:28 +0200 | |
changeset 67 | 00907acd732a |
parent 58 | 31a17b0b5159 |
permissions | -rw-r--r-- |
from twisted.internet import protocol, reactor from twisted.python import log import sys import api class ExampleModule (api.Module) : name = "example" version = 0x0001 def handleConnect (self) : self.sendEvent("example", "this is an example event") self.disconnect() if __name__ == '__main__' : log.startLogging(sys.stderr) module = ExampleModule() reactor.run()