READ_BUFFER_SIZE
READ_BUFFER_SIZE = 65535 : int
Read buffer size.
AsyncTcpConnection.
$onMessage : callable
Emitted when data is received.
$onClose : callable
Emitted when the other end of the socket sends a FIN packet.
$onError : callable
Emitted when an error occurs with connection.
$onBufferFull : callable
Emitted when the send buffer becomes full.
$onBufferDrain : callable
Emitted when the send buffer becomes empty.
$protocol : \Workerman\Protocols\ProtocolInterface
Application layer protocol.
The format is like this Workerman\Protocols\Http.
$transport : string
Transport layer protocol.
$worker : \Workerman\Worker
Which worker belong to.
$bytesRead : int
Bytes read.
$bytesWritten : int
Bytes written.
$id : int
Connection->id.
$maxSendBufferSize : int
Sets the maximum send buffer size for the current connection.
OnBufferFull callback will be emited When the send buffer is full.
$defaultMaxSendBufferSize : int
Default send buffer size.
$maxPackageSize : int
Sets the maximum acceptable packet size for the current connection.
$defaultMaxPackageSize : int
Default maximum acceptable packet size.
$connections : array
All connection instances.
$_statusToString : array
Status to string.
$statistics : array
Statistics for status command.
$onConnect : callable|null
Emitted when socket connection is successfully established.
$_id : int
A copy of $worker->id which used to clean up the connection in worker->connections
$_idRecorder : int
Id recorder.
$_socket : resource
Socket
$_sendBuffer : string
Send buffer.
$_recvBuffer : string
Receive buffer.
$_currentPackageLength : int
Current package length.
$_status : int
Status.
$_remoteAddress : string
Remote address.
$_isPaused : bool
Is paused.
$_sslHandshakeCompleted : bool
SSL handshake completed or not.
$_remoteHost : string
Remote host.
$_remotePort : int
Remote port.
$_connectStartTime : float
Connect start time.
$_remoteURI : string
Remote URI.
$_contextOption : array
Context option.
$_reconnectTimer : int
Reconnect timer.
$_builtinTransports : array
PHP built-in protocols.