mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 02:53:23 +00:00
增加 ListenTable 来检测端口占用 (#291)
* 增加 ListenTable 来检测端口占用 * 使用Arc封装GlobalSocketHandle * 删除 listen 处的端口检测逻辑,延至实现端口复用时完成 * 设立两张表,分别记录TCP和UDP的端口占用 * 实现 meatadata 相关逻辑 * 实现socket关闭时,端口在表中移除 * 使用端口管理器重构端口记录表 * 修正与RawSocket相关的端口管理逻辑 * 补充测试文件 * 修正 unbind_port 在逻辑错误 * 修正格式问题 --------- Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
28
user/dadk/config/test_bind-0.1.0.dadk
Normal file
28
user/dadk/config/test_bind-0.1.0.dadk
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "test_bind",
|
||||
"version": "0.1.0",
|
||||
"description": "一个简单的test bind",
|
||||
"task_type": {
|
||||
"BuildFromSource": {
|
||||
"Local": {
|
||||
"path": "apps/test_bind"
|
||||
}
|
||||
}
|
||||
},
|
||||
"depends": [
|
||||
{
|
||||
"name": "relibc",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
],
|
||||
"build": {
|
||||
"build_command": "make"
|
||||
},
|
||||
"install": {
|
||||
"in_dragonos_path": "/bin"
|
||||
},
|
||||
"clean": {
|
||||
"clean_command": "make clean"
|
||||
},
|
||||
"envs": []
|
||||
}
|
Reference in New Issue
Block a user