ProtocolDefinition
in package
implements
ProtocolDefinitionInterface
FinalYes
Неизменяемое описание протокола.
Tags
Table of Contents
Interfaces
- ProtocolDefinitionInterface
- Описание сетевого протокола в реестре менеджера.
Methods
- __construct() : mixed
- defaultScheme() : string
- Схема URI по умолчанию (tcp://, http://, unix:// и т.п.).
- id() : string
- Канонический идентификатор (например tcp, http, adsl).
- isNativeConnectable() : bool
- Можно ли открыть соединение средствами PHP без внешнего драйвера.
- name() : string
- Человекочитаемое имя.
- osiLayer() : int
- Слой OSI (1–7) или 0 вне модели.
- transport() : string
- Базовый транспортный идентификатор (tcp/udp/raw/custom/none).
Methods
__construct()
public
__construct(non-empty-string $id, non-empty-string $name, int $osiLayer, non-empty-string $transport, bool $nativeConnectable, non-empty-string $defaultScheme) : mixed
Parameters
- $id : non-empty-string
- $name : non-empty-string
- $osiLayer : int
- $transport : non-empty-string
- $nativeConnectable : bool
- $defaultScheme : non-empty-string
defaultScheme()
Схема URI по умолчанию (tcp://, http://, unix:// и т.п.).
public
defaultScheme() : string
Attributes
- #[Override]
Return values
stringid()
Канонический идентификатор (например tcp, http, adsl).
public
id() : string
Attributes
- #[Override]
Return values
stringisNativeConnectable()
Можно ли открыть соединение средствами PHP без внешнего драйвера.
public
isNativeConnectable() : bool
Attributes
- #[Override]
Return values
boolname()
Человекочитаемое имя.
public
name() : string
Attributes
- #[Override]
Return values
stringosiLayer()
Слой OSI (1–7) или 0 вне модели.
public
osiLayer() : int
Attributes
- #[Override]
Return values
inttransport()
Базовый транспортный идентификатор (tcp/udp/raw/custom/none).
public
transport() : string
Attributes
- #[Override]