\App\GatewayModule\ModelsNetworkManager

Network manager

Summary

Methods
Properties
Constants
__construct()
getHostname()
getInterfaces()
getIpAddresses()
getMacAddresses()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
listsInterfaces()
$commandManager
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

Methods

__construct()

__construct(\App\CoreModule\Models\CommandManager  $commandManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\CommandManager $commandManager

Command manager

Returns

mixed

getHostname()

getHostname() : string

Returns the gateway's hostname

Returns

string —

Hostname

getInterfaces()

getInterfaces() : array<int,array<string,string[][]|string|null>>

Returns information about network interfaces

Returns

array> —

Network interfaces

getIpAddresses()

getIpAddresses() : string[][]

Returns IPv4 and IPv6 addresses of the gateway

Returns

string[][] —

IPv4 and IPv6 addresses

getMacAddresses()

getMacAddresses() : string[]

Returns MAC addresses of the gateway

Returns

string[] —

MAC addresses array

listsInterfaces()

listsInterfaces() : string[]

Lists network interfaces

Returns

string[] —

Network interfaces