Releases: clue-legacy/php-datagram
Releases · clue-legacy/php-datagram
v0.5.0
v0.4.1
v0.4.0
- BC break: Unified socket addresses (string URIs instead of host+port)
(#5):-
The
Factory
now only accepts a single-argument full socket address (i.e. host:port for UDP/IP):// Previously: $factory->createServer(1337, 'localhost')->then(…); $factory->createClient('localhost', 1337)->then(…); // Now: $factory->createServer('localhost:1337')->then(…); $factory->createClient('localhost:1337')->then(…);
-
The methods
Socket::getAddress()
andSocket::getPort()
have been removed. -
Instead, the following two methods have been introduced which both return
a full socket address:SocketInterface::getLocalAddress()
SocketInterface::getRemoteAddress()
-
- Small refactoring to ease extending base classes
(#4)