PHP Class Cli\Agent

Afficher le fichier Open project: bcosca/fatfree-core

Protected Properties

Свойство Type Description
$buffer
$events
$flag
$headers
$id
$server
$socket
$uri
$verb

Méthodes publiques

Méthode 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 méthode

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

__destruct() public méthode

Destroy object
public __destruct ( ) : null
Résultat null

fetch() public méthode

Retrieve and unmask payload
public fetch ( ) : array | FALSE
Résultat array | FALSE

free() public méthode

Free stream socket
public free ( ) : null
Résultat null

headers() public méthode

Return socket headers
public headers ( ) : string
Résultat string

id() public méthode

Return socket ID
public id ( ) : string
Résultat string

send() public méthode

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

server() public méthode

Return server instance
public server ( ) : object
Résultat object

uri() public méthode

Return request URI
public uri ( ) : string
Résultat string

verb() public méthode

Return request method
public verb ( ) : string
Résultat string

Property Details

$buffer protected_oe property

protected $buffer

$events protected_oe property

protected $events

$flag protected_oe property

protected $flag

$headers protected_oe property

protected $headers

$id protected_oe property

protected $id

$server protected_oe property

protected $server

$socket protected_oe property

protected $socket

$uri protected_oe property

protected $uri

$verb protected_oe property

protected $verb