pyserv.tftpd module
Simple TFTP server for serving kernels or swupdate images in an engineering development environment.
- pyserv.tftpd.main(args=None)[source]
The serv entry point wrapper; both args are optional, but you must provide either IFACE or IFACE and PORT.
Usage:
tftpd [IFACE] [PORT]
- pyserv.tftpd.tftpd_init(directory)[source]
Init tftpd server for handoff; init logging.
- Parameters:
directory – server root directory
- Return tftpd_server:
tftpd server obj
- pyserv.tftpd.tftpd_run(iface='127.0.0.1', port='9069', directory='/home/runner/work/pyserv/pyserv/docs')[source]
Run in foreground command wrapper for TFTP console entry point; init server listening, run the server, stop the server.
- Parameters:
iface – server listen interface (default: all)
port – server listen port (default: 8069)
directory – server root directory (default: DOCROOT)