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.
|
|
3 months ago | |
|---|---|---|
| DLLs | 3 months ago | |
| Lib | 3 months ago | |
| Scripts | 3 months ago | |
| __pycache__ | 3 months ago | |
| build/SnailSend | 3 months ago | |
| dist | 3 months ago | |
| include | 3 months ago | |
| libs | 3 months ago | |
| tcl | 3 months ago | |
| web | 3 months ago | |
| LICENSE | 3 months ago | |
| LICENSE.txt | 3 months ago | |
| NEWS.txt | 3 months ago | |
| README.txt | 3 months ago | |
| SnailSend.exe | 3 months ago | |
| SnailSend.spec | 3 months ago | |
| gc.exe | 3 months ago | |
| icon.ico | 3 months ago | |
| main.py | 3 months ago | |
| main.py.bak | 3 months ago | |
| p2pfile.py | 3 months ago | |
| python.exe | 3 months ago | |
| python3.dll | 3 months ago | |
| python313.dll | 3 months ago | |
| pythonw.exe | 3 months ago | |
| sc.exe | 3 months ago | |
| send.ini | 3 months ago | |
| service.ini | 3 months ago | |
| vcruntime140.dll | 3 months ago | |
| vcruntime140_1.dll | 3 months ago | |
README.txt
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")