PHP 클래스 Thruway\Peer\Client

상속: extends Thruway\Peer\AbstractPeer, implements Evenement\EventEmitterInterface, use trait Evenement\EventEmitterTrait
파일 보기 프로젝트 열기: voryx/thruway 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$session Thruway\ClientSession

공개 메소드들

메소드 설명
__construct ( string $realm, React\EventLoop\LoopInterface $loop = null ) Constructor
__toString ( ) : string
addClientAuthenticator ( Thruway\Authentication\ClientAuthenticationInterface $ca ) Add client authenticator
addRole ( AbstractRole $role ) : Client Add role
addTransportProvider ( Thruway\Transport\ClientTransportProviderInterface $transportProvider ) Add transport provider
getAuthId ( ) : string Get authenticate ID
getAuthMethods ( ) : array Get list authenticate methods
getCallee ( ) : Callee Get callee
getCaller ( ) : Caller Get caller
getLoop ( ) : React\EventLoop\LoopInterface Get loop
getPublisher ( ) : Publisher Get publisher
getRealm ( ) : string
getRoleInfoObject ( ) : object
getRoles ( ) : array Get list roles
getSession ( ) : ClientSession Get client session
getSubscriber ( ) : Subscriber Get subscriber
onClose ( mixed $reason ) Handle close session
onMessage ( Thruway\Transport\TransportInterface $transport, Thruway\Message\Message $msg ) Handle process message
onOpen ( Thruway\Transport\TransportInterface $transport ) Handle open transport
onSessionEnd ( ClientSession $session ) Handle end session
onSessionStart ( ClientSession $session, Thruway\Transport\TransportInterface $transport ) This is meant to be overridden so that the client can do its thing
processAbort ( ClientSession $session, Thruway\Message\AbortMessage $msg )
processChallenge ( ClientSession $session, Thruway\Message\ChallengeMessage $msg ) Handle process challenge message
processGoodbye ( ClientSession $session, Thruway\Message\GoodbyeMessage $msg ) Handle process goodbye message
processOther ( ClientSession $session, Thruway\Message\Message $msg ) Handle process other Message
processWelcome ( ClientSession $session, Thruway\Message\WelcomeMessage $msg ) Process Welcome message
retryConnection ( ) Retry connecting to the transport
setAttemptRetry ( boolean $attemptRetry ) Set attempt retry
setAuthId ( string $authId ) Set authenticate ID
setAuthMethods ( array $authMethods ) Set list authenticate methods
setLoop ( React\EventLoop\LoopInterface $loop )
setReconnectOptions ( array $reconnectOptions ) Set reconnect options
start ( boolean $startLoop = true ) Start the transport
startSession ( ClientSession $session ) Start client session

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $realm, React\EventLoop\LoopInterface $loop = null )
$realm string
$loop React\EventLoop\LoopInterface

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

addClientAuthenticator() 공개 메소드

Add client authenticator
public addClientAuthenticator ( Thruway\Authentication\ClientAuthenticationInterface $ca )
$ca Thruway\Authentication\ClientAuthenticationInterface

addRole() 공개 메소드

Add role
public addRole ( AbstractRole $role ) : Client
$role Thruway\Role\AbstractRole
리턴 Client

addTransportProvider() 공개 메소드

Add transport provider
public addTransportProvider ( Thruway\Transport\ClientTransportProviderInterface $transportProvider )
$transportProvider Thruway\Transport\ClientTransportProviderInterface

getAuthId() 공개 메소드

Get authenticate ID
public getAuthId ( ) : string
리턴 string

getAuthMethods() 공개 메소드

Get list authenticate methods
public getAuthMethods ( ) : array
리턴 array

getCallee() 공개 메소드

Get callee
public getCallee ( ) : Callee
리턴 Thruway\Role\Callee

getCaller() 공개 메소드

Get caller
public getCaller ( ) : Caller
리턴 Thruway\Role\Caller

getLoop() 공개 메소드

Get loop
public getLoop ( ) : React\EventLoop\LoopInterface
리턴 React\EventLoop\LoopInterface

getPublisher() 공개 메소드

Get publisher
public getPublisher ( ) : Publisher
리턴 Thruway\Role\Publisher

getRealm() 공개 메소드

public getRealm ( ) : string
리턴 string

getRoleInfoObject() 공개 메소드

public getRoleInfoObject ( ) : object
리턴 object

getRoles() 공개 메소드

Get list roles
public getRoles ( ) : array
리턴 array

getSession() 공개 메소드

Get client session
public getSession ( ) : ClientSession
리턴 Thruway\ClientSession

getSubscriber() 공개 메소드

Get subscriber
public getSubscriber ( ) : Subscriber
리턴 Thruway\Role\Subscriber

onClose() 공개 메소드

Handle close session
public onClose ( mixed $reason )
$reason mixed

onMessage() 공개 메소드

Handle process message
public onMessage ( Thruway\Transport\TransportInterface $transport, Thruway\Message\Message $msg )
$transport Thruway\Transport\TransportInterface
$msg Thruway\Message\Message

onOpen() 공개 메소드

Handle open transport
public onOpen ( Thruway\Transport\TransportInterface $transport )
$transport Thruway\Transport\TransportInterface

onSessionEnd() 공개 메소드

Handle end session
public onSessionEnd ( ClientSession $session )
$session Thruway\ClientSession

onSessionStart() 공개 메소드

This is meant to be overridden so that the client can do its thing
public onSessionStart ( ClientSession $session, Thruway\Transport\TransportInterface $transport )
$session Thruway\ClientSession
$transport Thruway\Transport\TransportInterface

processAbort() 공개 메소드

public processAbort ( ClientSession $session, Thruway\Message\AbortMessage $msg )
$session Thruway\ClientSession
$msg Thruway\Message\AbortMessage

processChallenge() 공개 메소드

Handle process challenge message
public processChallenge ( ClientSession $session, Thruway\Message\ChallengeMessage $msg )
$session Thruway\ClientSession
$msg Thruway\Message\ChallengeMessage

processGoodbye() 공개 메소드

Handle process goodbye message
public processGoodbye ( ClientSession $session, Thruway\Message\GoodbyeMessage $msg )
$session Thruway\ClientSession
$msg Thruway\Message\GoodbyeMessage

processOther() 공개 메소드

Handle process other Message
public processOther ( ClientSession $session, Thruway\Message\Message $msg )
$session Thruway\ClientSession
$msg Thruway\Message\Message

processWelcome() 공개 메소드

Process Welcome message
public processWelcome ( ClientSession $session, Thruway\Message\WelcomeMessage $msg )
$session Thruway\ClientSession
$msg Thruway\Message\WelcomeMessage

retryConnection() 공개 메소드

Retry connecting to the transport
public retryConnection ( )

setAttemptRetry() 공개 메소드

Set attempt retry
public setAttemptRetry ( boolean $attemptRetry )
$attemptRetry boolean

setAuthId() 공개 메소드

Set authenticate ID
public setAuthId ( string $authId )
$authId string

setAuthMethods() 공개 메소드

Set list authenticate methods
public setAuthMethods ( array $authMethods )
$authMethods array

setLoop() 공개 메소드

public setLoop ( React\EventLoop\LoopInterface $loop )
$loop React\EventLoop\LoopInterface

setReconnectOptions() 공개 메소드

Set reconnect options
public setReconnectOptions ( array $reconnectOptions )
$reconnectOptions array

start() 공개 메소드

Start the transport
public start ( boolean $startLoop = true )
$startLoop boolean

startSession() 공개 메소드

Start client session
public startSession ( ClientSession $session )
$session Thruway\ClientSession

프로퍼티 상세

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

protected ClientSession,Thruway $session
리턴 Thruway\ClientSession