Socket
Book a DemoInstallSign in
Socket

github.com/izouxv/landrop-repl-go

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/izouxv/landrop-repl-go

Source
Go
Version
v0.0.1
Version published
Created
Source

LANDrop-Core-Go

基于Golang实现的LANDrop核心,参考 https://github.com/LANDrop/LANDrop 实现。

Features

  • 完全兼容LANDrop协议,可与原生LANDrop混用通信
  • 通过UDP广播发现局域网内的其他设备
  • 通过TCP连接实现文件传输,借助golang.org/x/crypto实现传输消息加密
  • 重名文件接收时自动重命名
  • 实现文件传输进度显示
  • 提供REPL环境,实现接收文件确认
  • 支持配置文件和main命令传参
  • REPL交互式环境
    • sf - 发送文件,根据提示探出文件选择框并输入IP地址和端口号
    • sfd - 直接发送文件
    • help - 帮助信息
    • 发现局域网内其他Landrop服务并使用
    • info - 查看基础信息

目前实现的功能还比较糙,一些端口和配置都是硬编码的,后续将支持命令行传参并结合配置文件进行配置。

Usage

等待接收文件

接收目录目前硬编码在src/transfer/common_transer.go中的downloadDir全局变量,后续将支持命令行传参和配置文件配置。

等待接收文件

主动发送文件

sfd命令(Send files with directory)

等待接收文件

sf命令(GUI文件选择框)

Building

  • Clone this repository
git clone https://github.com/fanmmy/LANDrop-Core-Go.git
  • Generate vendor
go mod vendor
  • build main.go
go build -o landrop main.go 

FAQs

Package last updated on 25 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts