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.

Summary
MethodsPropertiesConstants
No constants
Properties
$encoded
$encoded
$id
$id
$last_error
$last_error
Static
$typeCodes
$typeCodes
Methods
__construct()
__construct($id, $encoded = true)
check()
check($type) : mixed
Checks that a protocol message type is valid and returns it's numeric value
decode()
decode($packet, $payload = null, $time = null)
encode()
encode($type, $payload = null)
encoded()
encoded()
error()
error($msg)
getLastError()
getLastError()
getType()
getType($name)
getTypeName()
getTypeName($type)