Package tftpy :: Module TftpPacketTypes :: Class TftpPacketDAT
[hide private]
[frames] | no frames]

Class TftpPacketDAT

source code

object --+    
         |    
TftpPacket --+
             |
            TftpPacketDAT


        2 bytes    2 bytes       n bytes
        ---------------------------------
DATA  | 03    |   Block #  |    Data    |
        ---------------------------------
    

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
encode(self)
Encode the DAT packet.
source code
 
decode(self)
Decode self.buffer into instance variables.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

encode(self)

source code 

Encode the DAT packet. This method populates self.buffer, and returns self for easy method chaining.

Overrides: TftpPacket.encode

decode(self)

source code 

Decode self.buffer into instance variables. It returns self for easy method chaining.

Overrides: TftpPacket.decode