minimumTFTP is een TFTP-server en client geschreven in Python.
Basic gebruik:
& Nbsp; >>> import minimumTFTP
& Nbsp; server draaien
& Nbsp; >>> tftpServer = minimumTFTP.Server ('C: server_TFTP_Directory')
& Nbsp; >>> tftpServer.run ()
& Nbsp; client running
& Nbsp; >>> arg1: server_ip_address
& Nbsp; >>> arg2: client_directory
& Nbsp; >>> arg3: krijg of zet bestandsnaam
& Nbsp; >>> tftpClient = minimumTFTP.Client (arg1, arg2, arg3)
& Nbsp; krijgen
& Nbsp; >>> tftpClient.get ()
& Nbsp; zetten
& Nbsp; >>> tftpClient.put ()
Gebruik python -m:
& Nbsp; server Runnning
& Nbsp; python -m minimumTFTP -s [directory]
& Nbsp; klant te krijgen
& Nbsp; python -m minimumTFTP -g [serverIP] [directory] [bestandsnaam]
& Nbsp; client put
& Nbsp; python -m minimumTFTP -p [serverIP] [directory] [bestandsnaam]
Eisen
- Python
Reacties niet gevonden