Skip to content

GeekRookie/file_share_server

Repository files navigation

局域网文件共享系统

架构图

Alt text

实体

Alt text

接口

// 消息ID
const (
	Get uint8 = iota
	Set
	Del
)

请求格式
type Request struct {
	//消息ID
	ID uint8
	//消息的长度
	DataLen uint16
	//消息的内容
	Data []byte
}

Get 获取所有的共享文件

Set 创建共享文件, 请求体里面携带一个文件信息的负载

Del 删除共享文件, 请求体里面携带一个文件信息的负载

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors