Skip to content

Commit

Permalink
doc updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yedf committed Aug 24, 2015
1 parent d650f97 commit 4b3fb32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ con->onRead([](const TcpConnPtr& con){
con->getInput().clear();
});
```
###reconnect setting
```c
//set reconnect. -1: no reconnect; 0 :reconnect now; other: wait millisecond; default -1
void setReconnectInterval(int milli);
```
###callback for idle
```c
void addIdleCB(int idle, const TcpCallBack& cb);
Expand Down
5 changes: 5 additions & 0 deletions doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ con->onRead([](const TcpConnPtr& con){
con->getInput().clear();
});
```
###设置重连
```c
//设置重连时间间隔,-1: 不重连,0:立即重连,其它:等待毫秒数,未设置不重连
void setReconnectInterval(int milli);
```
###连接空闲回调
```c
void addIdleCB(int idle, const TcpCallBack& cb);
Expand Down

0 comments on commit 4b3fb32

Please sign in to comment.