Skip to content

Commit

Permalink
table
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanglei5 committed Dec 4, 2014
1 parent e234428 commit 378a8ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/13.swoole_table.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@ swoole_table 目前只支持以下3种类型,个人感觉有点儿类似于表
## 函数列表

- [__construct](#swoole_table__construct)
**功能描述**:内存表构造函数,创建内存表对象对象。
**函数原型**
```php
swoole_table->__construct(int $size)
```
**返回**:一个swoole_table对象。
**参数说明**
| 参数 | 说明 |
| -------- | -------- |
| string host | 监听的IP地址 |
| int port | 监听的端口号 |
| int mode | 运行模式 |
| int sock_type | 指定的socket类型 |
使用示例:
```php
$table = new swoole_table(1024);
```

0 comments on commit 378a8ec

Please sign in to comment.