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.
private string $lastError
public __construct ({ Array })
Parameter Type Description $sid
string
$encoded
bool
public getLastError ({ Array })
Checks that a protocol message type is valid and returns it's numeric value.
Parameter Type Description $type
string
If $type is a string, it is checked and if valid then it's numeric value is returned. If $type is
an integer it will be returned back if valid. If either is not valid then false is returned. |
Parameter Type Description $name
string
public getTypeName ({ Array })
Parameter Type Description $type
mixed
Parameter Type Description $type
string
$payload
mixed
Parameter Type Description $packet
string
$payload
mixed
$time
int
Parameter Type Description $msg
string
Generated by Hazaar API Doc Generator
Prev
Process
Next
Protocol