You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1.0 KiB

windows 开启xftp(目前版本: frp_0.53.2_windows_amd64 )
在./P2PfilePython文件夹下右击打开终端

#发送命令 (windows)

python.exe .\p2pfile.py --mode send --host 127.0.0.1 --port 7001 --path D:\navidrome-data.zip --psk 123456@@

#接收命令 (windows)

python.exe .\p2pfile.py --mode recv --host 47.97.6.201 --port 6000 --outdir ./ --psk 123456@@

python3 ./p2pfile.py --mode recv --host 127.0.0.1 --port 6000 --outdir ./ --psk 123456


参数说明:
--mode", choices=["send", "recv"], required=True)
--host", help="接收端IP (send模式必需)")
--port", type=int, required=True)
--path", help="要发送的文件/目录 (send模式必需)")
--outdir", help="接收保存目录 (recv模式必需)")
--rate", help="限速,例: 500K, 5M(每连接)")
--psk", required=True, help="预共享密钥,用于保证不被串口,可自定义")
--conn", type=int, default=4, help="并行连接数,默认 4")
--part-size", type=int, default=64, help="分片大小(MB),默认 64")