
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@16 63283fd4-ec1e-0410-9879-cb7f675518da
17 lines
389 B
Python
Executable file
17 lines
389 B
Python
Executable file
"""Disclaimer: This is just a placeholder. I do not yet support Twisted
|
|
Python."""
|
|
|
|
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()
|