\Hazaar\Application
Protocol
Hazaar Application Protocol Class

The Application Protocol is a simple protocol developed to allow communication between parts of the Hazaar framework over the wire or other IO interfaces. It allows common information to be encoded/decoded between endpoints.

Tags

Since

2.0.0

Package

Core

Summary
Methods Properties Constants
$id
No constants
Properties
$encoded
$encoded
$id
$id
$last_error
$last_error
$typeCodes
$typeCodes
Methods
__construct()
__construct($id, $encoded = true)

Parameters

$id

No description

$encoded

No description

decode()
decode($packet, $payload = null, $offset = null)

Parameters

$packet

No description

$payload

No description

$offset

No description

encode()
encode($type, $payload = Array ( ) )

Parameters

$type

No description

$payload

No description

error()
error($msg)

Parameters

$msg

No description

getLastError()
getLastError()
getType()
getType($name)

Parameters

$name

No description

getTypeName()
getTypeName($type)

Parameters

$type

No description