Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gdut-drcom
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gdut-drcom
Commits
0948bb12
Commit
0948bb12
authored
Nov 25, 2016
by
chenhaowen01
Committed by
GitHub
Nov 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
4d55f54d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
README.md
README.md
+34
-0
No files found.
README.md
View file @
0948bb12
...
...
@@ -39,6 +39,7 @@ mingw32-make CC=gcc
make dll CC=gcc
```
# usage
*
命令行工具
```
gdut-drcom
--remote-ip <ip addr> The server ip.
...
...
@@ -51,6 +52,39 @@ gdut-drcom
[-h, --help] Print this message.
[-v, --version] Print version infomatuon
```
*
动态链接库
gdut-drcom 动态链接库提供如下接口,供上层应用程序配置与启动心跳服务:
```
c
/* 函数名称:set_remote_ip
* 参数表: char *ip 远程认证服务器ip
* int len 上一个参数的长度
* 返回值: 无
* 函数功能:用于配置认证服务器的ip地址
*/
void
set_remote_ip
(
char
*
ip
,
int
len
);
/* 函数名称:set_keep_alive1_flag
* 参数表: char *flag 数据包标志,两个字节大小
* int len 上一个参数的长度
* 返回值: 无
* 函数功能:用于配置第一组数据包的标志位,不设置则默认为00
*/
void
set_keep_alive1_flag
(
char
*
flag
,
int
len
);
/* 函数名称:set_enable_crypt
* 参数表: int enable 0为禁用加密校验,1为启用加密校验
* 返回值: 无
* 函数功能:用于配置第一组数据包的校验是否使用加密校验,不配置则默认为不加密
*/
void
set_enable_crypt
(
int
enable
);
/* 函数名称:get_version
* 参数表: char *version 用于存储返回的版本号,请确保该字符数组不会越界
* 返回值: 无
* 函数功能:用于获取当前使用的动态链接库的版本号,如"1.6.0"
*/
void
get_version
(
char
*
version
);
```
# reference
数据包结构参考了
[
drcom-generic
][
1
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment