How to use the tftpy.TftpPacket.__init__ function in tftpy

To help you get started, we’ve selected a few tftpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github msoulier / tftpy / tftpy.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 6
github msoulier / tftpy / tftpy.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.filename = None
        self.mode = None
github msoulier / tftpy / tftpy.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 5
        self.errorcode = 0
        self.errmsg = None
        # FIXME - integrate in TftpErrors references?
        self.errmsgs = {
            1: "File not found",
            2: "Access violation",
            3: "Disk full or allocation exceeded",
            4: "Illegal TFTP operation",
            5: "Unknown transfer ID",
            6: "File already exists",
            7: "No such user",
            8: "Failed to negotiate options"
            }
github msoulier / tftpy / tftpy.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 4
        self.blocknumber = 0
github msoulier / tftpy / tftpy.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 3
        self.blocknumber = 0
        self.data = None