summaryrefslogtreecommitdiff
path: root/tftpy/TftpClient.py
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2009-04-10 23:20:19 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2009-04-10 23:20:19 -0400
commitc61ca171db8945105c3b2fb25f3e510ba18e6a7d (patch)
treee7cb91c644549e25fa662a2c0d965e810bc8f1d0 /tftpy/TftpClient.py
parent410e14c430cb55bc705098046c13e36bd21febad (diff)
downloadtftpy-c61ca171db8945105c3b2fb25f3e510ba18e6a7d.tar.gz
Fixing a merge error in rebase
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r--tftpy/TftpClient.py18
1 files changed, 2 insertions, 16 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py
index c5b0c1f..4d9b5f7 100644
--- a/tftpy/TftpClient.py
+++ b/tftpy/TftpClient.py
@@ -24,22 +24,6 @@ class TftpClient(TftpSession):
raise TftpException, "Invalid blksize: %d" % size
else:
self.options['blksize'] = DEF_BLKSIZE
- # Support other options here? timeout time, retries, etc?
- # The remote sending port, to identify the connection.
- self.port = None
- self.sock = None
-
- def gethost(self):
- "Simple getter method for use in a property."
- return self.__host
-
- def sethost(self, host):
- """Setter method that also sets the address property as a result
- of the host that is set."""
- self.__host = host
- self.address = socket.gethostbyname(host)
-
- host = property(gethost, sethost)
def download(self, filename, output, packethook=None, timeout=SOCK_TIMEOUT):
"""This method initiates a tftp download from the configured remote
@@ -77,6 +61,8 @@ class TftpClient(TftpSession):
def upload(self, filename, input, packethook=None, timeout=SOCK_TIMEOUT):
# Open the input file.
+ # FIXME: As of the state machine, this is now broken. Need to
+ # implement with new state machine.
self.fileobj = open(input, "rb")
recvpkt = None
curblock = 0