2.0.0 Beta 4
Pre-release-
Updated interfaces extending
ClosableStream(which was renamed toClosablein amphp/byte-stream) to include theonClosemethod which was added to the interface. -
SocketAddresshas been changed to an interface with two implementations -InternetAddressandUnixAddress. These can be differentiated usingSocketAddress::getType(), which returns an enumSocketAddressTypewith casesUnixandInternet. -
SocketAddressstatic constructors have been relocated as functions in theAmp\Socket\SocketAddressnamespace. -
DnsSocketConnectornow tries each host returned from a DNS query a single time before failing. Retrying the list is accomplished through a new connector implementation,RetrySocketConnectorthat can be configured to retry a given number of times with an exponential backoff between attempts. -
Max attempts has been removed from
ConnectContextin favor of a constructor parameter toRetrySocketConnector. -
Added
SocketServerFactoryinterface for creatingSocketServerinstances, along with an implementationResourceSocketServerFactory. -
EncryptableSocket::getTlsState()now returns an enumTlsStatewith cases corresponding to the prior constants defined inEncryptableSocket, which have been removed.