This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
2006-10-05 16:32:59 +00:00
|
|
|
"""Disclaimer: This is just a placeholder. I do not yet support Twisted
|
|
|
|
Python."""
|
2006-10-03 19:11:18 +00:00
|
|
|
|
|
|
|
from twisted.internet import reactor, protocol
|
|
|
|
|
|
|
|
class TFTPProtocol(protocol.DatagramProtocol):
|
|
|
|
pass
|
|
|
|
|
|
|
|
class TFTPProtocolFactory(protocol.ClientFactory):
|
|
|
|
protocol = TFTPProtocol
|
|
|
|
|
|
|
|
def main():
|
|
|
|
reactor.listenUDP(port, TFTPProtocolFactory())
|
|
|
|
reactor.run()
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|