PHP Class Cli\Agent

Show file Open project: bcosca/fatfree-core

Protected Properties

Property Type Description
$buffer
$events
$flag
$headers
$id
$server
$socket
$uri
$verb

Public Methods

Method Description
__construct ( $server, $socket, $verb, $uri, array $hdrs ) : object Instantiate object
__destruct ( ) : null Destroy object
fetch ( ) : array | FALSE Retrieve and unmask payload
free ( ) : null Free stream socket
headers ( ) : string Return socket headers
id ( ) : string Return socket ID
send ( $op, $data = '' ) : string | FALSE Frame and transmit payload
server ( ) : object Return server instance
uri ( ) : string Return request URI
verb ( ) : string Return request method

Method Details

__construct() public method

Instantiate object
public __construct ( $server, $socket, $verb, $uri, array $hdrs ) : object
$server object
$socket resource
$verb string
$uri string
$hdrs array array
return object

__destruct() public method

Destroy object
public __destruct ( ) : null
return null

fetch() public method

Retrieve and unmask payload
public fetch ( ) : array | FALSE
return array | FALSE

free() public method

Free stream socket
public free ( ) : null
return null

headers() public method

Return socket headers
public headers ( ) : string
return string

id() public method

Return socket ID
public id ( ) : string
return string

send() public method

Frame and transmit payload
public send ( $op, $data = '' ) : string | FALSE
$op int
return string | FALSE

server() public method

Return server instance
public server ( ) : object
return object

uri() public method

Return request URI
public uri ( ) : string
return string

verb() public method

Return request method
public verb ( ) : string
return string

Property Details

$buffer protected property

protected $buffer

$events protected property

protected $events

$flag protected property

protected $flag

$headers protected property

protected $headers

$id protected property

protected $id

$server protected property

protected $server

$socket protected property

protected $socket

$uri protected property

protected $uri

$verb protected property

protected $verb