2010-07-12 01:19:01 +00:00
|
|
|
"""
|
|
|
|
This library implements the tftp protocol, based on rfc 1350.
|
2006-12-17 06:08:05 +00:00
|
|
|
http://www.faqs.org/rfcs/rfc1350.html
|
|
|
|
At the moment it implements only a client class, but will include a server,
|
|
|
|
with support for variable block sizes.
|
2010-07-12 01:19:01 +00:00
|
|
|
|
|
|
|
As a client of tftpy, this is the only module that you should need to import
|
|
|
|
directly. The TftpClient and TftpServer classes can be reached through it.
|
2006-12-17 06:08:05 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2007-02-09 18:48:48 +00:00
|
|
|
# Make sure that this is at least Python 2.3
|
2006-12-17 06:08:05 +00:00
|
|
|
verlist = sys.version_info
|
2007-02-09 18:48:48 +00:00
|
|
|
if not verlist[0] >= 2 or not verlist[1] >= 3:
|
|
|
|
raise AssertionError, "Requires at least Python 2.3"
|
2006-12-17 06:08:05 +00:00
|
|
|
|
|
|
|
from TftpShared import *
|
|
|
|
from TftpPacketTypes import *
|
|
|
|
from TftpPacketFactory import *
|
|
|
|
from TftpClient import *
|
|
|
|
from TftpServer import *
|
2011-07-24 03:20:53 +00:00
|
|
|
from TftpContexts import *
|
|
|
|
from TftpStates import *
|