27    public const UNRELIABLE = 0;
 
   28    public const UNRELIABLE_SEQUENCED = 1;
 
   29    public const RELIABLE = 2;
 
   30    public const RELIABLE_ORDERED = 3;
 
   31    public const RELIABLE_SEQUENCED = 4;
 
   34    public const UNRELIABLE_WITH_ACK_RECEIPT = 5;
 
   35    public const RELIABLE_WITH_ACK_RECEIPT = 6;
 
   36    public const RELIABLE_ORDERED_WITH_ACK_RECEIPT = 7;
 
   38    public const MAX_ORDER_CHANNELS = 32;
 
   40    public static function isReliable(
int $reliability) : 
bool{
 
   42            $reliability === self::RELIABLE or
 
   43            $reliability === self::RELIABLE_ORDERED or
 
   44            $reliability === self::RELIABLE_SEQUENCED or
 
   45            $reliability === self::RELIABLE_WITH_ACK_RECEIPT or
 
   46            $reliability === self::RELIABLE_ORDERED_WITH_ACK_RECEIPT
 
   50    public static function isSequenced(
int $reliability) : 
bool{
 
   52            $reliability === self::UNRELIABLE_SEQUENCED or
 
   53            $reliability === self::RELIABLE_SEQUENCED
 
   57    public static function isOrdered(
int $reliability) : 
bool{
 
   59            $reliability === self::RELIABLE_ORDERED or
 
   60            $reliability === self::RELIABLE_ORDERED_WITH_ACK_RECEIPT
 
   64    public static function isSequencedOrOrdered(
int $reliability) : 
bool{
 
   66            $reliability === self::UNRELIABLE_SEQUENCED or
 
   67            $reliability === self::RELIABLE_ORDERED or
 
   68            $reliability === self::RELIABLE_SEQUENCED or
 
   69            $reliability === self::RELIABLE_ORDERED_WITH_ACK_RECEIPT