\Imi\Server\UdpServer\MessagePacketData

Summary

Methods
Properties
Constants
__construct()
getData()
getFormatData()
getClientInfo()
No public properties found
No constants found
No protected methods found
$data
$formatData
$clientInfo
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : string

数据内容

Type

string

$formatData

$formatData : mixed

接收到的数据

Type

mixed

$clientInfo

$clientInfo : array

客户端信息

Type

array

Methods

__construct()

__construct(  $data,   $clientInfo) 

Parameters

$data
$clientInfo

getData()

getData() : string

数据内容

Returns

string

getFormatData()

getFormatData() : mixed

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

Returns

mixed

getClientInfo()

getClientInfo() : array

获取客户端信息

Returns

array