Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
报告_前方高能
asynframe framework
提交
0429bebd
A
asynframe framework
项目概览
报告_前方高能
/
asynframe framework
上一次同步 9 个月
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
asynframe framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
0429bebd
编写于
6月 10, 2022
作者:
报告_前方高能
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.2-20220610
上级
5de2a7cf
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
doc/console.md
doc/console.md
+2
-2
doc/dns.md
doc/dns.md
+2
-2
doc/lua.md
doc/lua.md
+1
-0
doc/sqlite.md
doc/sqlite.md
+2
-2
doc/websocket.md
doc/websocket.md
+2
-2
doc/zip.md
doc/zip.md
+0
-1
未找到文件。
doc/console.md
浏览文件 @
0429bebd
# console 插件
创建控制台,支持键盘/鼠标输入,加载/卸载实现ICommand接口的插件,便于产品在线调试
创建控制台,支持键盘/鼠标输入,加载/卸载实现I
Os
Command接口的插件,便于产品在线调试
## 导出函数
```
c++
...
...
@@ -23,4 +23,4 @@ else
```
## 例子
\s
upport
\t
estconsole
\s
upport
\t
estconsole
\ No newline at end of file
doc/dns.md
浏览文件 @
0429bebd
# dns 插件
实现基于udp/tcp/http的域名解析模块
,通过网络模块[asynsock]加载
实现基于udp/tcp/http的域名解析模块
## 导出函数
```
c++
...
...
@@ -25,7 +25,7 @@ const char *uri = "udp://8.8.8.8|8.8.4.4:53";
spAsynNetwork
->
CreateAsynDnsResolver
(
STRING_from_string
(
"dns"
),
0
,
STRING_from_string
(
uri
),
0
,
&
spAsynDnsResolver
);
```
提交解析
域名
:
提交解析
请求
:
```
c++
CComPtr
<
IAsynNetIoOperation
>
spAsynIoOperation
;
m_spAsynNetwork
->
CreateAsynIoOperation
(
m_spAsynFrame
,
af
,
0
,
IID_IAsynNetIoOperation
,
(
void
**
)
&
spAsynIoOperation
);
...
...
doc/lua.md
浏览文件 @
0429bebd
...
...
@@ -14,6 +14,7 @@ spCommand.Attach(asynsdk::CreateCommand(lpInstancesManager, "lua", spAsynFrameTh
if
(
spCommand
)
{
spCommand
->
Execute
(
0
,
STRING_from_string
(
"open"
),
&
STRING_from_string
(
"test.lua"
),
1
,
0
);
//执行test.lua脚本
spCommand
->
Execute
(
0
,
STRING_from_string
(
"exec"
),
&
STRING_from_string
(
"print(
\"
This is my world!
\"
)"
),
1
,
0
);
//执行lua脚本块
}
```
...
...
doc/sqlite.md
浏览文件 @
0429bebd
...
...
@@ -7,7 +7,7 @@
HRESULT
__stdcall
CreateCommand
(
/*[in ]*/
InstancesManager
*
lpInstancesManager
,
/*[in ]*/
IUnknown
*
param1
,
/*[in ]*/
uint64_t
param2
,
/*[out]*/
I
DataTransmit
**
object
)
/*[out]*/
I
OsCommand
**
object
)
```
## 开发
...
...
@@ -24,7 +24,7 @@ spCommand->Execute(0, STRING_from_string("INSERT INTO coreinfo(info, vals) VALUE
```
查询数据
```
c++
spCommand
->
Execute
(
0
,
STRING_from_string
(
"SELECT * FROM coreinfo;"
),
0
,
0
,
0
,
GetAsynMessageEvents
()
,
0
);
spCommand
->
Execute
(
0
,
STRING_from_string
(
"SELECT * FROM coreinfo;"
),
0
,
0
,
0
,
GetAsynMessageEvents
());
```
```
c++
void
CSqlite
::
OnEventNotify
(
uint64_t
lParam1
,
uint64_t
lParam2
,
IUnknown
*
object
)
...
...
doc/websocket.md
浏览文件 @
0429bebd
...
...
@@ -42,12 +42,12 @@ opcode定义:
0xA:表示这是一个pong操作。
0xB-F:保留的操作代码,用于后续定义的控制帧
发送websocket控制帧[opcode=0x08~0x0F]
发送websocket控制帧[opcode=0x08
\
~
0x0F]
```
c++
spNet
->
Write
(
lpAsynIoOperation
,
0x08
);
//发送断开命令
```
发送websocket数据帧[opcode=0x00
~0x07/0x80
~0x87]
发送websocket数据帧[opcode=0x00
\~
0x07/0x80
\
~
0x87]
```
c++
spNet
->
Write
(
lpAsynIoOperation
,
0x82
);
//发送数据
```
...
...
doc/zip.md
浏览文件 @
0429bebd
...
...
@@ -47,6 +47,5 @@ if( spDataTransmit )
}
```
## 例子
\s
upport
\t
estframe
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录