PHP Class blink\server\SwServer

Inheritance: extends Server
Afficher le fichier Open project: bixuehujin/blink

Méthodes publiques

Свойство Type Description
$asDaemon boolean Detach the server process and run as daemon.
$logFile string Specifies the path where logs should be stored in.
$maxPackageLength integer The max package length in bytes for swoole, which is default to 2M (1024 * 1024 * 2). Please refer http://wiki.swoole.com/wiki/page/301.html for more detailed information.
$maxRequests integer The number of requests each process should execute before respawning, This can be useful to work around with possible memory leaks.
$numWorkers integer The number of workers should be started to serve requests.
$outputBufferSize integer The output buffer size, see http://wiki.swoole.com/wiki/page/440.html

Méthodes publiques

Méthode Description
onFinish ( $server, $taskId, $data )
onManagerStart ( $server )
onRequest ( $request, $response )
onServerStart ( $server )
onServerStop ( )
onTask ( $server, $taskId, $fromId, $data )
onWorkerStart ( )
onWorkerStop ( )
run ( )

Méthodes protégées

Méthode Description
createServer ( )
normalizeFiles ( $files )
normalizedConfig ( )
prepareRequest ( $request )

Method Details

createServer() protected méthode

protected createServer ( )

normalizeFiles() protected méthode

protected normalizeFiles ( $files )

normalizedConfig() protected méthode

protected normalizedConfig ( )

onFinish() public méthode

public onFinish ( $server, $taskId, $data )

onManagerStart() public méthode

public onManagerStart ( $server )

onRequest() public méthode

public onRequest ( $request, $response )

onServerStart() public méthode

public onServerStart ( $server )

onServerStop() public méthode

public onServerStop ( )

onTask() public méthode

public onTask ( $server, $taskId, $fromId, $data )

onWorkerStart() public méthode

public onWorkerStart ( )

onWorkerStop() public méthode

public onWorkerStop ( )

prepareRequest() protected méthode

protected prepareRequest ( $request )

run() public méthode

public run ( )

Property Details

$asDaemon public_oe property

Detach the server process and run as daemon.
public bool $asDaemon
Résultat boolean

$logFile public_oe property

Specifies the path where logs should be stored in.
public string $logFile
Résultat string

$maxPackageLength public_oe property

The max package length in bytes for swoole, which is default to 2M (1024 * 1024 * 2). Please refer http://wiki.swoole.com/wiki/page/301.html for more detailed information.
public int $maxPackageLength
Résultat integer

$maxRequests public_oe property

The number of requests each process should execute before respawning, This can be useful to work around with possible memory leaks.
public int $maxRequests
Résultat integer

$numWorkers public_oe property

The number of workers should be started to serve requests.
public int $numWorkers
Résultat integer

$outputBufferSize public_oe property

The output buffer size, see http://wiki.swoole.com/wiki/page/440.html
public int $outputBufferSize
Résultat integer