\think\log\driverSocket

github: https://github.com/luofei614/SocketLog

Summary

Methods
Properties
Constants
__construct()
save()
No public properties found
No constants found
sendToClient()
check()
getClientArg()
send()
$app
$config
$css
$allowForceClientIds
$clientArg
N/A
No private methods found
No private properties found
N/A

Properties

$app

$app : 

Type

$config

$config : 

Type

$css

$css : 

Type

$allowForceClientIds

$allowForceClientIds : 

Type

$clientArg

$clientArg : 

Type

Methods

__construct()

__construct(\think\App  $app, array  $config = array()) 

架构函数

Parameters

\think\App $app
array $config

缓存参数

save()

save(array  $log = array()) : boolean

调试输出接口

Parameters

array $log

日志信息

Returns

boolean

sendToClient()

sendToClient(  $tabid,   $clientId,   $logs,   $forceClientId) 

发送给指定客户端

Parameters

$tabid
$clientId
$logs
$forceClientId

check()

check() : boolean

检测客户授权

Returns

boolean

getClientArg()

getClientArg(string  $name) : string

获取客户参数

Parameters

string $name

Returns

string

send()

send(string  $host, integer  $port, string  $message = '', string  $address = '/') : boolean

Parameters

string $host
  • $host of socket server
integer $port
  • $port of socket server
string $message
  • 发送的消息
string $address
  • 地址

Returns

boolean