可以把协议栈读到的数据发给用户层应用了! 下一步把用户层应用的数据写给客户端

This commit is contained in:
impact-eintr
2022-12-08 18:39:11 +08:00
parent c025408041
commit 9a46ec9db5
8 changed files with 363 additions and 29 deletions

View File

@@ -21,7 +21,8 @@ func (v Value) LessThanEq(w Value) bool {
// InRange v ∈ [a, b)
func (v Value) InRange(a, b Value) bool {
return a <= v && v < b
//return a <= v && v < b
return v-a < b-a
}
// InWindows check v in [first, first+size)