\Imi\Server\TcpServer\MessageIReceiveData

Summary

Methods
Constants
getFd()
getData()
getFormatData()
getReactorID()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getFd()

getFd() : integer

获取客户端的socket id

Returns

integer

getData()

getData() : string

数据内容,可以是文本内容也可以是二进制数据,可以通过opcode的值来判断

Returns

string

getFormatData()

getFormatData() : mixed

获取格式化后的数据,一般是数组或对象

Returns

mixed

getReactorID()

getReactorID() : integer

获取Reactor线程ID

Returns

integer