8000 GitHub - ftyszyx/debug_server: debug_server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ftyszyx/debug_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ref

Description

需求:

  1. 可以列出:通过socket连接过的设备列表:ip地址,guid,设备类型,设备名,连接状态:连上还是没连上
  2. 点一个连上的设备,可以弹出对话框,通过socket.io和服务器聊天
  3. 聊天命令发送到服务器,服务器再将命令转发给设备
  4. 增加一个日志表,记录所有与服务器的交互.

debug_server: 有设备连上,通过client_model添加数据库

debug_client_model

is_connect(guid)

客户端与服务端的交互

client_req
{
  cmd:string
  data:key=value 空格分隔
}
   server_req{
     cmd:string  第一个空格前的
     param:string  第一个空格之后的所有内容
   }
   client_resp string
   
   client第一次连上会发送:个人信息
   cmd:set 
   data:key=value 空格分隔

协议包头

   *(int*)(ptr + 0) = pack.size;
                *(int*)(ptr + 4) = pack.from;
                *(int*)(ptr + 8) = pack.to;

#无限scroll https://github.com/bvaughn/react-window https://github.com/bvaughn/react-window-infinite-loader/ https://juejin.cn/post/7132277540806213645 https://github.com/bvaughn/react-virtualized

服务器部署参照: https://github.com/mattermost/mattermost docker run --name mattermost-preview -d --publish 8065:8065 mattermost/mattermost-preview

https://github.com/kingToolbox/WindTerm

https://www.bilibili.com/video/BV1YU4y1p7jG/?spm_id_from=333.337.search-card.all.click&a 6E67 mp;vd_source=1cfe4f7c9bf04285f79b848e60f55aea

author

License

Nest is MIT licensed.

About

debug_server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0