add sdk md

This commit is contained in:
刘河
2019-12-16 23:25:47 +08:00
parent eab5708b33
commit 899d1e9e2e
4 changed files with 26 additions and 50 deletions

View File

@@ -12,6 +12,7 @@
* [基本使用](use.md)
* [增强功能](npc_extend.md)
* [sdk](npc_sdk.md)
* 扩展

23
docs/npc_sdk.md Normal file
View File

@@ -0,0 +1,23 @@
# npc sdk文档
```
命令行模式启动客户端
p0->连接地址
p1->vkey
p2->连接类型tcp or udp
p3->连接代理
extern GoInt StartClientByVerifyKey(char* p0, char* p1, char* p2, char* p3);
查看当前启动的客户端状态在线为1离线为0
extern GoInt GetClientStatus();
关闭客户端
extern void CloseClient();
获取当前客户端版本
extern char* Version();
获取日志,实时更新
extern char* Logs();
```

View File

@@ -18,6 +18,8 @@
- 停止:`npc.exe stop`
- 如果需要更换命令内容需要先卸载`npc.exe -service=uninstall`,再重新注册
注册到服务后日志文件windows位于当前目录下linux和darwin位于/var/log/npc.log
## 客户端更新
首先进入到对于的客户端二进制文件目录