Skip to content
把代码放出来接受监督。。。23333
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
common
config
message
ui
worker
.gitignore
LICENSE
Makefile
README.md
config.json
go.mod
go.sum
main.go

README.md

clippy

WORKING...

Proto

分发,仅分发!

ui

UI

common

公共数据

state

状态存储

协议

Draft

logon ---------> |
        hi!      |
                 |
send ----------> |
        msg      |
                 |
recv <---------- |

    lost: resend(unicast)
        lost: 
            <------ I lost a packet! last number is xxx
            (connect unicast udp)
            ------> Here is the packet
            <------ Thanks!
            
    logon: mark
    recv: rack (random ack) (an algorithm needed)
        heartbeat:
            <----- my last packet # is xxx
            (I am incorrect!)
            -----> I lost packet xxx (unicast)
            <----- Here you go
            -----> Thanks!

Heartbeat: 用户状态与工作模式,当前最后条目时间戳,等

{
    "src": "?.?.?.?:?",
    "last_time": "1919191919"
}

pb:

  • timestamp: time of last message,
  • ip: 232,
  • operation: 1,
  • type: 0,
  • content:

Data:

{
    "timestamp": 12345565,
    "operation": 23,
    "type": true,
    "content": {}
}
You can’t perform that action at this time.