PHP 클래스 Workerman\Connection\AsyncTcpConnection

상속: extends TcpConnection
파일 보기 프로젝트 열기: walkor/workerman 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$onConnect callback Emitted when socket connection is successfully established.
$transport string Transport layer protocol.

보호된 프로퍼티들

프로퍼티 타입 설명
$_builtinTransports array PHP built-in protocols.
$_connectStartTime string Connect start time.
$_contextOption resource Context option.
$_reconnectTimer integer Reconnect timer.
$_remoteHost string Remote host.
$_remoteURI string Remote URI.
$_status integer Status.

공개 메소드들

메소드 설명
__construct ( string $remote_address, array $context_option = null ) Construct.
checkConnection ( resource $socket ) : void Check connection is successfully established or faild.
connect ( ) : void Do connect.
getRemoteHost ( ) : string Get remote address.
getRemoteURI ( ) : string Get remote URI.
reConnect ( integer $after ) : void Reconnect.

보호된 메소드들

메소드 설명
emitError ( integer $code, string $msg ) : void Try to emit onError callback.

메소드 상세

__construct() 공개 메소드

Construct.
public __construct ( string $remote_address, array $context_option = null )
$remote_address string
$context_option array

checkConnection() 공개 메소드

Check connection is successfully established or faild.
public checkConnection ( resource $socket ) : void
$socket resource
리턴 void

connect() 공개 메소드

Do connect.
public connect ( ) : void
리턴 void

emitError() 보호된 메소드

Try to emit onError callback.
protected emitError ( integer $code, string $msg ) : void
$code integer
$msg string
리턴 void

getRemoteHost() 공개 메소드

Get remote address.
public getRemoteHost ( ) : string
리턴 string

getRemoteURI() 공개 메소드

Get remote URI.
public getRemoteURI ( ) : string
리턴 string

reConnect() 공개 메소드

Reconnect.
public reConnect ( integer $after ) : void
$after integer
리턴 void

프로퍼티 상세

$_builtinTransports 보호되어 있는 정적으로 프로퍼티

PHP built-in protocols.
protected static array $_builtinTransports
리턴 array

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

Connect start time.
protected string $_connectStartTime
리턴 string

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

Context option.
protected resource $_contextOption
리턴 resource

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

Reconnect timer.
protected int $_reconnectTimer
리턴 integer

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

Remote host.
protected string $_remoteHost
리턴 string

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

Remote URI.
protected string $_remoteURI
리턴 string

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

Status.
protected int $_status
리턴 integer

$onConnect 공개적으로 프로퍼티

Emitted when socket connection is successfully established.
public callback $onConnect
리턴 callback

$transport 공개적으로 프로퍼티

Transport layer protocol.
public string $transport
리턴 string