PHP 트레잇 PHPPM\ProcessCommunicationTrait

파일 보기 프로젝트 열기: php-pm/php-pm

보호된 프로퍼티들

프로퍼티 타입 설명
$socketPath string Path to socket folder.

공개 메소드들

메소드 설명
processMessage ( array $data, Connection $conn ) Parses a received message. Redirects to the appropriate command* method.
setSocketPath ( string $socketPath )

보호된 메소드들

메소드 설명
bindProcessMessage ( Connection $conn ) Binds data-listener to $conn and waits for incoming commands.
getNewControllerHost ( boolean $removeOld = true ) : string
getNewSlaveSocket ( integer $port ) : string
getSockFile ( string $affix, boolean $removeOld ) : string
sendMessage ( Connection $conn, string $command, array $message = [] ) Sends a message through $conn.

메소드 상세

bindProcessMessage() 보호된 메소드

Binds data-listener to $conn and waits for incoming commands.
protected bindProcessMessage ( Connection $conn )
$conn React\Socket\Connection

getNewControllerHost() 보호된 메소드

protected getNewControllerHost ( boolean $removeOld = true ) : string
$removeOld boolean
리턴 string

getNewSlaveSocket() 보호된 메소드

protected getNewSlaveSocket ( integer $port ) : string
$port integer
리턴 string

getSockFile() 보호된 메소드

protected getSockFile ( string $affix, boolean $removeOld ) : string
$affix string
$removeOld boolean
리턴 string

processMessage() 공개 메소드

Parses a received message. Redirects to the appropriate command* method.
public processMessage ( array $data, Connection $conn )
$data array
$conn React\Socket\Connection

sendMessage() 보호된 메소드

Sends a message through $conn.
protected sendMessage ( Connection $conn, string $command, array $message = [] )
$conn React\Socket\Connection
$command string
$message array

setSocketPath() 공개 메소드

public setSocketPath ( string $socketPath )
$socketPath string

프로퍼티 상세

$socketPath 보호되어 있는 프로퍼티

Path to socket folder.
protected string $socketPath
리턴 string