mxmbsocket/lib/Ratchet/Protocol/WebSocket/FrameInterface.php
Chris Boden 118923e784 Messaging Interfaces
Added Messaging and Framing Interfaces
2011-11-12 13:51:49 -05:00

55 lines
756 B
PHP

<?php
namespace Ratchet\Protocol\WebSocket;
interface FrameInterface {
/**
* @return bool
*/
function isCoalesced();
/**
* @param string
*/
function addBuffer($buf);
/**
* @return bool
*/
function isFragment();
/**
* @return bool
*/
function isFinial();
/**
* @return bool
*/
function isMasked();
/**
* @return int
*/
function getOpcode();
/**
* @return int
*/
function getPayloadLength();
/**
* @return int
*/
function getReceivedPayloadLength();
/**
* 32-big string
* @return string
*/
function getMaskingKey();
/**
* @param string
*/
function getPayload();
}