Socket
in package
implements
SocketInterface
FinalYes
Table of Contents
Interfaces
Properties
- $logger : LoggerInterface
- $multicastAddress : string
- $networkInterface : string|int|null
Methods
- __construct() : mixed
- Create a new instance.
- request() : string
- Send out the multicast discover request.
Properties
$logger
private
LoggerInterface
$logger
The logging object.
$multicastAddress
private
string
$multicastAddress
The multicast address to use for SSDP discovery.
$networkInterface
private
string|int|null
$networkInterface
The network interface to use for SSDP discovery.
Methods
__construct()
Create a new instance.
public
__construct(string|int|null $networkInterface, string $multicastAddress, LoggerInterface $logger) : mixed
Parameters
- $networkInterface : string|int|null
-
The interface to use
- $multicastAddress : string
-
The address to use
- $logger : LoggerInterface
-
A logging object
request()
Send out the multicast discover request.
public
request() : string