protected isLastPacket ( string $packet ) : boolean | ||
$packet | string | Chunk to interpret. |
리턴 | boolean | True if empty or EOF. |
protected function isLastPacket($packet)
{
if (is_string($packet)) {
return $packet === '';
}
return !$packet;
}