summaryrefslogtreecommitdiff
path: root/tftpy/TftpClient.py
diff options
context:
space:
mode:
authormsoulier <msoulier@63283fd4-ec1e-0410-9879-cb7f675518da>2007-03-31 02:03:36 +0000
committermsoulier <msoulier@63283fd4-ec1e-0410-9879-cb7f675518da>2007-03-31 02:03:36 +0000
commitd9665e19fcf3af739f25637820fbfdb49a90b38e (patch)
treec267974fd2aa1d8e88c1069f9d428864b209b0f1 /tftpy/TftpClient.py
parentb68ceca9d8025e4cd01ecb71d087776bb015f81c (diff)
downloadtftpy-d9665e19fcf3af739f25637820fbfdb49a90b38e.tar.gz
Updating docs for epydoc.
git-svn-id: https://tftpy.svn.sourceforge.net/svnroot/tftpy/trunk@67 63283fd4-ec1e-0410-9879-cb7f675518da
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r--tftpy/TftpClient.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py
index 50d3ccf..4dd263e 100644
--- a/tftpy/TftpClient.py
+++ b/tftpy/TftpClient.py
@@ -3,7 +3,8 @@ from TftpShared import *
from TftpPacketFactory import *
class TftpClient(TftpSession):
- """This class is an implementation of a tftp client."""
+ """This class is an implementation of a tftp client. Once instantiated, a
+ download can be initiated via the download() method."""
def __init__(self, host, port, options={}):
"""This constructor returns an instance of TftpClient, taking the
remote host, the remote port, and the filename to fetch."""
@@ -25,7 +26,7 @@ class TftpClient(TftpSession):
self.sock = None
def gethost(self):
- "Simple getter method."
+ "Simple getter method for use in a property."
return self.__host
def sethost(self, host):
@@ -47,6 +48,7 @@ class TftpClient(TftpSession):
wait for a receive packet to arrive."""
# Open the output file.
# FIXME - need to support alternate return formats than files?
+ # File-like objects would be ideal, ala duck-typing.
outputfile = open(output, "wb")
recvpkt = None
curblock = 0