resp协议定义, xml定义配置文件
This commit is contained in:
75
NtyCo/README.md
Executable file
75
NtyCo/README.md
Executable file
@@ -0,0 +1,75 @@
|
||||
## NtyCo
|
||||
|
||||
#### coroutine
|
||||
[实现原理](https://github.com/wangbojing/NtyCo/wiki/NtyCo%E7%9A%84%E5%AE%9E%E7%8E%B0)
|
||||
[配套视频讲解](https://it.0voice.com/p/t_pc/goods_pc_detail/goods_detail/course_2QFAeORw45TjJA1y9tq8CmdVJTQ)
|
||||
|
||||
## details
|
||||
#### coroutine FSM
|
||||

|
||||
|
||||
#### storage structure (ready, wait, sleep, status)
|
||||

|
||||
|
||||
#### nty_server process
|
||||

|
||||
|
||||
#### compile
|
||||
|
||||
```
|
||||
编译ntyco的core文件与编译libntyco.a的静态库
|
||||
$ make
|
||||
|
||||
// 编译sample
|
||||
$ make bin
|
||||
```
|
||||
|
||||
#### err info
|
||||
```
|
||||
nty_mysql_oper.c:8:19: fatal error: mysql.h: No such file or directory
|
||||
|
||||
解决方案:
|
||||
# sudo apt-get install libmysqlclient-dev
|
||||
|
||||
nty_rediscli.c:11:21: fatal error: hiredis.h: No such file or directory
|
||||
|
||||
解决方案:
|
||||
需要编译安装hiredis: https://github.com/redis/hiredis
|
||||
|
||||
```
|
||||
|
||||
|
||||
#### server
|
||||
```
|
||||
$ ./bin/nty_server
|
||||
```
|
||||
#### client
|
||||
```
|
||||
./bin/nty_client
|
||||
```
|
||||
|
||||
#### mul_process, mul_core
|
||||
```
|
||||
$ ./bin/nty_server_mulcore
|
||||
```
|
||||
#### websocket
|
||||
```
|
||||
$ ./bin/nty_websocket_server
|
||||
```
|
||||
|
||||
#### bench
|
||||
```
|
||||
$ ./bin/nty_bench
|
||||
```
|
||||

|
||||

|
||||
|
||||
|
||||
#### http server
|
||||
```
|
||||
$ ./bin/nty_http_server_mulcore
|
||||
```
|
||||
|
||||

|
||||
|
||||
##### [对应视频讲解](https://ke.qq.com/course/2705727?tuin=1bf84273)
|
||||
Reference in New Issue
Block a user