프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$buffer | String representation of the payload contents | ||
$frames | Wrench\Frame\Frame[] | A payload may consist of one or more frames |
메소드 | 설명 | |
---|---|---|
__toString ( ) : string | ||
encode ( string $data, integer $type = Protocol::TYPE_TEXT, boolean $masked = false ) : |
Encodes a payload | |
getPayload ( ) : string | ||
getRemainingData ( ) : number | null | Gets the number of remaining bytes before this payload will be complete | |
getType ( ) : integer | Gets the type of the payload | |
isComplete ( ) : boolean | Whether the payload is complete | |
isWaitingForData ( ) : boolean | Whether this payload is waiting for more data | |
receiveData ( string $data ) : void | Receive raw data into the payload | |
sendToSocket ( |
메소드 | 설명 | |
---|---|---|
getCurrentFrame ( ) : mixed | Gets the current frame for the payload | |
getFrame ( ) : Wrench\Frame\Frame | Get a frame object | |
getReceivingFrame ( ) : Wrench\Frame\Frame | Gets the frame into which data should be receieved |
protected getCurrentFrame ( ) : mixed | ||
리턴 | mixed |
abstract protected getFrame ( ) : Wrench\Frame\Frame | ||
리턴 | Wrench\Frame\Frame |
protected getReceivingFrame ( ) : Wrench\Frame\Frame | ||
리턴 | Wrench\Frame\Frame |
public getRemainingData ( ) : number | null | ||
리턴 | number | null |
public isWaitingForData ( ) : boolean | ||
리턴 | boolean |
public receiveData ( string $data ) : void | ||
$data | string | |
리턴 | void |
public sendToSocket ( |
||
$socket | ||
리턴 | boolean |