Releases: amphp/socket
Releases · amphp/socket
2.3.1
1.2.1
What's Changed
- Make implicit nullable types explicit by @nicolas-grekas in #111
Full Changelog: v1.2.0...v1.2.1
2.3.0
2.2.4
What's Changed
- Removed missed call to
stream_context_set_option(), which was causing a deprecation notice on PHP 8.3.
Full Changelog: v2.2.3...v2.2.4
2.2.3
What's Changed
- Updated deprecated use of
stream_context_set_option()on PHP 8.3.
Full Changelog: v2.2.2...v2.2.3
2.2.2
2.2.1
What's Changed
- Updated the default chunk size in
ResourceUdpSocketto match the maximum UDP payload length.
Full Changelog: v2.2.0...v2.2.1
2.2.0
2.1.0
2.0.0
Stable release compatible with AMPHP v3 and fibers! 🎉
As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.
See some of the changes in v2.0 of amphp/byte-stream since this library extends several of the interfaces in that library, particularly ReadableStream and WritableStream.
- Moved methods from the
EncryptableSocketinterface toSocketand removedEncryptableSocket - Changed
SocketAddressto an interface with two implementations:InternetAddressandUnixAddress- These implementations can be differentiated using
SocketAddress::getType(), which returns an enumSocketAddressTypewith casesUnixandInternet SocketAddressstatic constructors have been relocated as functions in theAmp\Socket\SocketAddressnamespace.
- These implementations can be differentiated using
- Added
connectTlsfunction - Added
bindUdpSocketfunction - Added
ResourceUdpSocketandUdpSocketinterface - Added
ServerSocketFactoryinterface for creatingServerSocketinstances along with an implementationResourceServerSocketFactory - Renamed
createPairfunction tocreateSocketPair - Renamed
connectortosocketConnector - Renamed
ServertoResourceServerSocketand introducedServerSocketinterfaceResourceServerSocket::__construct()requires aBindContextinstance
- Renamed
ConnectortoSocketConnector - Renamed
DnsConnectortoDnsSocketConnector - Renamed
StaticConnectortoStaticSocketConnector - Removed chunk size from
BindContext, use chunk size parameters onlisten/bindUdpSocketinstead - Max attempts has been removed from
ConnectContextin favor of a constructor parameter toRetrySocketConnector 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.- Default required TLS version is now 1.2+ instead of 1.0+
Changes from 2.0.0 Beta 9
- Moved methods from the
EncryptableSocketinterface toSocketand removedEncryptableSocket - Renamed
SocketServertoServerSocket - Renamed
SocketServerFactorytoServerSocketFactory