PHP Class Devristo\Phpws\Framing\WebSocketFrame

Author: Chris
Inheritance: implements Devristo\Phpws\Framing\WebSocketFrameInterface
Exibir arquivo Open project: devristo/phpws Class Usage Examples

Protected Properties

Property Type Description
$FIN First Byte
$RSV1
$RSV2
$RSV3
$actualLength
$mask Second Byte
$maskingKey
$opcode
$payloadData
$payloadLength

Public Methods

Method Description
create ( $type, $data = null )
decode ( &$buffer )
encode ( )
getData ( )
getType ( )
isFinal ( )
isMasked ( )
isReady ( )
setMasked ( $mask )

Protected Methods

Method Description
IsBitSet ( $byte, $pos )
rotMask ( $data, $key, $offset )
setType ( $type )

Private Methods

Method Description
__construct ( )

Method Details

IsBitSet() protected static method

protected static IsBitSet ( $byte, $pos )

create() public static method

public static create ( $type, $data = null )

decode() public static method

public static decode ( &$buffer )

encode() public method

public encode ( )

getData() public method

public getData ( )

getType() public method

public getType ( )

isFinal() public method

public isFinal ( )

isMasked() public method

public isMasked ( )

isReady() public method

public isReady ( )

rotMask() protected static method

protected static rotMask ( $data, $key, $offset )

setMasked() public method

public setMasked ( $mask )

setType() protected method

protected setType ( $type )

Property Details

$FIN protected_oe property

First Byte
protected $FIN

$RSV1 protected_oe property

protected $RSV1

$RSV2 protected_oe property

protected $RSV2

$RSV3 protected_oe property

protected $RSV3

$actualLength protected_oe property

protected $actualLength

$mask protected_oe property

Second Byte
protected $mask

$maskingKey protected_oe property

protected $maskingKey

$opcode protected_oe property

protected $opcode

$payloadData protected_oe property

protected $payloadData

$payloadLength protected_oe property

protected $payloadLength