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
ResourceUdpSocket
to 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
EncryptableSocket
interface toSocket
and removedEncryptableSocket
- Changed
SocketAddress
to an interface with two implementations:InternetAddress
andUnixAddress
- These implementations can be differentiated using
SocketAddress::getType()
, which returns an enumSocketAddressType
with casesUnix
andInternet
SocketAddress
static constructors have been relocated as functions in theAmp\Socket\SocketAddress
namespace.
- These implementations can be differentiated using
- Added
connectTls
function - Added
bindUdpSocket
function - Added
ResourceUdpSocket
andUdpSocket
interface - Added
ServerSocketFactory
interface for creatingServerSocket
instances along with an implementationResourceServerSocketFactory
- Renamed
createPair
function tocreateSocketPair
- Renamed
connector
tosocketConnector
- Renamed
Server
toResourceServerSocket
and introducedServerSocket
interfaceResourceServerSocket::__construct()
requires aBindContext
instance
- Renamed
Connector
toSocketConnector
- Renamed
DnsConnector
toDnsSocketConnector
- Renamed
StaticConnector
toStaticSocketConnector
- Removed chunk size from
BindContext
, use chunk size parameters onlisten
/bindUdpSocket
instead - Max attempts has been removed from
ConnectContext
in favor of a constructor parameter toRetrySocketConnector
DnsSocketConnector
now tries each host returned from a DNS query a single time before failing. Retrying the list is accomplished through a new connector implementation,RetrySocketConnector
that 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
EncryptableSocket
interface toSocket
and removedEncryptableSocket
- Renamed
SocketServer
toServerSocket
- Renamed
SocketServerFactory
toServerSocketFactory