\duncan3dc\Sonos\UtilsSocket

Summary

Methods
Properties
Constants
__construct()
request()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$networkInterface
$multicastAddress
$logger
N/A

Properties

$networkInterface

$networkInterface : string|integer|null

Type

string|integer|null — The network interface to use for SSDP discovery.

$multicastAddress

$multicastAddress : string

Type

string — The multicast address to use for SSDP discovery.

$logger

$logger : \Psr\Log\LoggerInterface

Type

\Psr\Log\LoggerInterface — The logging object.

Methods

__construct()

__construct(string|integer|null  $networkInterface, string  $multicastAddress, \Psr\Log\LoggerInterface  $logger) 

Create a new instance.

Parameters

string|integer|null $networkInterface

The interface to use

string $multicastAddress

The address to use

\Psr\Log\LoggerInterface $logger

A logging object

request()

request() : string

Send out the multicast discover request.

Throws

\duncan3dc\Sonos\Exceptions\NetworkException

Returns

string