minimumTFTP er en TFTP server og klient skrevet i Python.
Basic bruk:
& Nbsp; >>> import minimumTFTP
& Nbsp; server kjører
& Nbsp; >>> tftpServer = minimumTFTP.Server ('C: server_TFTP_Directory')
& Nbsp; >>> tftpServer.run ()
& Nbsp; klient drift
& Nbsp; >>> arg1: server_IP_address
& Nbsp; >>> arg2: client_directory
& Nbsp; >>> arg3: få eller sette filnavn
& Nbsp; >>> tftpClient = minimumTFTP.Client (arg1, arg2, arg3)
& Nbsp; få
& Nbsp; >>> tftpClient.get ()
& Nbsp; satt
& Nbsp; >>> tftpClient.put ()
bruke python -m:
& Nbsp; server Runnning
& Nbsp; python -m minimumTFTP -s [katalog]
& Nbsp; klienten får
& Nbsp; python -m minimumTFTP -g [serverIP] [katalog] [filnavn]
& Nbsp; klient put
& Nbsp; python -m minimumTFTP -p [serverIP] [katalog] [filnavn]
Krav
- Python
Kommentarer ikke funnet