workerman $connection对象

Workerman\Connection\TcpConnection Object
(
[onMessage] => Closure Object
///////////////////////////////////////////////////////////////////////////1
(
[this] => Workerman\Worker Object
(
[id] => 0
[name] => none
[count] => 1
[user] => root
[group] =>
[reloadable] => 1
[reusePort] =>
[onWorkerStart] =>
[onConnect] => Closure Object
(
[parameter] => Array
(
[$connection] =>
)

                    )

                [onMessage] => Closure Object

RECURSION
[onClose] =>
[onError] =>
[onBufferFull] =>
[onBufferDrain] =>
[onWorkerStop] =>
[onWorkerReload] =>
[transport] => tcp
[connections] => Array
(
[1] => Workerman\Connection\TcpConnection Object
(
[onMessage] => Closure Object
RECURSION
[onClose] =>
[onError] =>
[onBufferFull] =>
[onBufferDrain] =>
[protocol] => \Workerman\Protocols\Websocket
[transport] => tcp
[worker] => Workerman\Worker Object
RECURSION
[bytesRead] => 672
[bytesWritten] => 182
[id] => 1
[_id:protected] => 1
[maxSendBufferSize] => 1048576
[maxPackageSize] => 10485760
[_socket:protected] => Resource id #25
[_sendBuffer:protected] =>
[_recvBuffer:protected] =>
[_currentPackageLength:protected] => 0
[_status:protected] => 2
[_remoteAddress:protected] => 211.161.167.125:64552
[_isPaused:protected] =>
[_sslHandshakeCompleted:protected] =>
[websocketDataBuffer] =>
[websocketCurrentFrameLength] => 0
[websocketCurrentFrameBuffer] =>
[websocketType] => �
[websocketHandshake] => 1
)

                        [2] => Workerman\Connection\TcpConnection Object
                            (
                                [onMessage] => Closure Object

RECURSION
[onClose] =>
[onError] =>
[onBufferFull] =>
[onBufferDrain] =>
[protocol] => \Workerman\Protocols\Websocket
[transport] => tcp
[worker] => Workerman\Worker Object
RECURSION
[bytesRead] => 672
[bytesWritten] => 182
[id] => 2
[_id:protected] => 2
[maxSendBufferSize] => 1048576
[maxPackageSize] => 10485760
[_socket:protected] => Resource id #30
[_sendBuffer:protected] =>
[_recvBuffer:protected] =>
[_currentPackageLength:protected] => 0
[_status:protected] => 2
[_remoteAddress:protected] => 211.161.167.125:64649
[_isPaused:protected] =>
[_sslHandshakeCompleted:protected] =>
[websocketDataBuffer] =>
[websocketCurrentFrameLength] => 0
[websocketCurrentFrameBuffer] =>
[websocketType] => �
[websocketHandshake] => 1
)

                        [3] => Workerman\Connection\TcpConnection Object

RECURSION
)

                [protocol] => \Workerman\Protocols\Websocket
                [_autoloadRootPath:protected] => /workerman
                [_pauseAccept:protected] =>
                [stopping] =>
                [_mainSocket:protected] => Resource id #17
                [_socketName:protected] => websocket://0.0.0.0:2001
                [_context:protected] => Resource id #7
                [workerId] => 0000000004a51e840000000029ff6660
                [socket] => websocket://0.0.0.0:2001
                [status] =>  [OK] 
            )

    )

////////////////////////////////////////////////////////////////////////////////////////////1
[onClose] =>
[onError] =>
[onBufferFull] =>
[onBufferDrain] =>
[protocol] => \Workerman\Protocols\Websocket
[transport] => tcp
[worker] => Workerman\Worker Object
/////////////////////////////////////////////////////////////////////////////2
(
[id] => 0
[name] => none
[count] => 1
[user] => root
[group] =>
[reloadable] => 1
[reusePort] =>
[onWorkerStart] =>
[onConnect] => Closure Object
(
[parameter] => Array
(
[$connection] =>
)

            )

        [onMessage] => Closure Object
            (
                [this] => Workerman\Worker Object

RECURSION
)

        [onClose] =>
        [onError] =>
        [onBufferFull] =>
        [onBufferDrain] =>
        [onWorkerStop] =>
        [onWorkerReload] =>
        [transport] => tcp
        [connections] => Array
            (
                [1] => Workerman\Connection\TcpConnection Object
                    (
                        [onMessage] => Closure Object
                            (
                                [this] => Workerman\Worker Object

RECURSION
)

                        [onClose] =>
                        [onError] =>
                        [onBufferFull] =>
                        [onBufferDrain] =>
                        [protocol] => \Workerman\Protocols\Websocket
                        [transport] => tcp
                        [worker] => Workerman\Worker Object

RECURSION
[bytesRead] => 672
[bytesWritten] => 182
[id] => 1
[_id:protected] => 1
[maxSendBufferSize] => 1048576
[maxPackageSize] => 10485760
[_socket:protected] => Resource id #25
[_sendBuffer:protected] =>
[_recvBuffer:protected] =>
[_currentPackageLength:protected] => 0
[_status:protected] => 2
[_remoteAddress:protected] => 211.161.167.125:64552
[_isPaused:protected] =>
[_sslHandshakeCompleted:protected] =>
[websocketDataBuffer] =>
[websocketCurrentFrameLength] => 0
[websocketCurrentFrameBuffer] =>
[websocketType] => �
[websocketHandshake] => 1
)

                [2] => Workerman\Connection\TcpConnection Object
                    (
                        [onMessage] => Closure Object
                            (
                                [this] => Workerman\Worker Object

RECURSION
)

                        [onClose] =>
                        [onError] =>
                        [onBufferFull] =>
                        [onBufferDrain] =>
                        [protocol] => \Workerman\Protocols\Websocket
                        [transport] => tcp
                        [worker] => Workerman\Worker Object

RECURSION
[bytesRead] => 672
[bytesWritten] => 182
[id] => 2
[_id:protected] => 2
[maxSendBufferSize] => 1048576
[maxPackageSize] => 10485760
[_socket:protected] => Resource id #30
[_sendBuffer:protected] =>
[_recvBuffer:protected] =>
[_currentPackageLength:protected] => 0
[_status:protected] => 2
[_remoteAddress:protected] => 211.161.167.125:64649
[_isPaused:protected] =>
[_sslHandshakeCompleted:protected] =>
[websocketDataBuffer] =>
[websocketCurrentFrameLength] => 0
[websocketCurrentFrameBuffer] =>
[websocketType] => �
[websocketHandshake] => 1
)

                [3] => Workerman\Connection\TcpConnection Object

RECURSION
)

        [protocol] => \Workerman\Protocols\Websocket
        [_autoloadRootPath:protected] => /workerman
        [_pauseAccept:protected] =>
        [stopping] =>
        [_mainSocket:protected] => Resource id #17
        [_socketName:protected] => websocket://0.0.0.0:2001
        [_context:protected] => Resource id #7
        [workerId] => 0000000004a51e840000000029ff6660
        [socket] => websocket://0.0.0.0:2001
        [status] =>  [OK] 
    )

////////////////////////////////////////////////////////////////////////////////////////////////3
[bytesRead] => 0
[bytesWritten] => 0
[id] => 3
[_id:protected] => 3
[maxSendBufferSize] => 1048576
[maxPackageSize] => 10485760
[_socket:protected] => Resource id #33
[_sendBuffer:protected] =>
[_recvBuffer:protected] =>
[_currentPackageLength:protected] => 0
[_status:protected] => 2
[_remoteAddress:protected] => 211.161.167.125:65162
[_isPaused:protected] =>
[_sslHandshakeCompleted:protected] =>
)
;

你可能感兴趣的:(workerman $connection对象)