How to use the tftpy.TftpPacketTypes.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 dhtech / swboot / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        TftpPacketWithOptions.__init__(self)
        self.opcode = 6
github msoulier / tftpy / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        TftpPacketWithOptions.__init__(self)
        self.filename = None
        self.mode = None
github dhtech / swboot / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 5
        self.errorcode = 0
        # FIXME: We don't encode the errmsg...
        self.errmsg = None
        # FIXME - integrate in TftpErrors references?
        self.errmsgs = {
            1: b"File not found",
            2: b"Access violation",
            3: b"Disk full or allocation exceeded",
            4: b"Illegal TFTP operation",
            5: b"Unknown transfer ID",
            6: b"File already exists",
            7: b"No such user",
            8: b"Failed to negotiate options"
            }
github dhtech / swboot / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        TftpPacketWithOptions.__init__(self)
        self.filename = None
        self.mode = None
github dhtech / swboot / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 4
        self.blocknumber = 0
github msoulier / tftpy / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 4
        self.blocknumber = 0
github msoulier / tftpy / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 3
        self.blocknumber = 0
        self.data = None
github msoulier / tftpy / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        self.opcode = 5
        self.errorcode = 0
        # FIXME: We don't encode the errmsg...
        self.errmsg = None
        # FIXME - integrate in TftpErrors references?
        self.errmsgs = {
            1: b"File not found",
            2: b"Access violation",
            3: b"Disk full or allocation exceeded",
            4: b"Illegal TFTP operation",
            5: b"Unknown transfer ID",
            6: b"File already exists",
            7: b"No such user",
            8: b"Failed to negotiate options"
            }
github msoulier / tftpy / tftpy / TftpPacketTypes.py View on Github external
def __init__(self):
        TftpPacket.__init__(self)
        TftpPacketWithOptions.__init__(self)
        self.opcode = 6