Skip to content

An asynchronous TFTP server in pure Python 3.5

License

Notifications You must be signed in to change notification settings

pedrudehuere/otftp

 
 

Repository files navigation

otftp

otftpd is an asynchronous TFTP server written in Python 3.5 compatible with the Oberon sources

This project is a fork of https://github.com/sirMackk/py3tftp version 1.2.1

Installation

git clone https://github.com/pedrudehuere/otftp.git
pip install otftp

Upgrade

cd otftp
git pull
pip install --update .

Usage

otftp only sends files, it does not receive.

usage: otftp [-h] [--host HOST] [-p PORT] [--files-dir FILES_DIR]
             [--ack-timeout ACK_TIMEOUT] [--conn-timeout TIMEOUT]
             [-l FILE_LOG] [-v] [--version]

optional arguments:
  -h, --help            show this help message and exit
  --host HOST           IP of the interface the server will listen on.
                        Default: 0.0.0.0
  -p PORT, --port PORT  Port the server will listen on. Default: 69 (TFTP
                        standard port)
  --files-dir FILES_DIR
                        Directory where files are read from. Default: current
                        working directory
  --ack-timeout ACK_TIMEOUT
                        Timeout for each ACK of the lock-step. Default: 0.5.
  --conn-timeout TIMEOUT
                        Timeout before the server gives up on a transfer and
                        closes the connection. Default: 3.
  -l FILE_LOG, --file-log FILE_LOG
                        Append output to log file.
  -v, --verbose         Enable debug-level logging.
  --version

LICENSE

The MIT License (MIT)

Copyright (c) 2016-2018 sirMackk

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

An asynchronous TFTP server in pure Python 3.5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Shell 0.7%