= #17342 Make 2.4 binary compatible with 2.3
(cherry picked from commit89af8bdb90) * remove final identifier in serializers i* revert/deprecate ProtobufSerializer.ARRAY_OF_BYTE_ARRAY * adding back compatible empty constructor in serializers * make FSM.State compatible * add back ActorPath.ElementRegex * revert SocketOption changes and add SocketOptionV2 seea6d3704ef6* problem filter for ActorSystem and ActorPath * problem filter for ByteString * problem filter for deprecated Timeout methods * BalancingPool companion * ask * problem filter for ActorDSL * event bus * exclude hasSubscriptions * exclude some problems in testkit * boundAddress and addressFromSocketAddress * Pool nrOfInstances * PromiseActorRef * check with 2.3.9 * migration guide note * explicit exclude of final class problems
This commit is contained in:
parent
412491d277
commit
b30e460be7
50 changed files with 1037 additions and 202 deletions
|
|
@ -5,10 +5,11 @@
|
|||
package docs.io
|
||||
|
||||
import java.net.{InetAddress, InetSocketAddress, NetworkInterface, StandardProtocolFamily}
|
||||
import java.net.DatagramSocket
|
||||
import java.nio.channels.DatagramChannel
|
||||
|
||||
import akka.actor.{Actor, ActorLogging, ActorRef}
|
||||
import akka.io.Inet.{DatagramChannelCreator, SocketOption}
|
||||
import akka.io.Inet.{DatagramChannelCreator, SocketOption, SocketOptionV2}
|
||||
import akka.io.{IO, Udp}
|
||||
import akka.util.ByteString
|
||||
|
||||
|
|
@ -20,11 +21,11 @@ final case class Inet6ProtocolFamily() extends DatagramChannelCreator {
|
|||
//#inet6-protocol-family
|
||||
|
||||
//#multicast-group
|
||||
final case class MulticastGroup(address: String, interface: String) extends SocketOption {
|
||||
override def afterConnect(c: DatagramChannel) {
|
||||
final case class MulticastGroup(address: String, interface: String) extends SocketOptionV2 {
|
||||
override def afterBind(s: DatagramSocket) {
|
||||
val group = InetAddress.getByName(address)
|
||||
val networkInterface = NetworkInterface.getByName(interface)
|
||||
c.join(group, networkInterface)
|
||||
s.getChannel.join(group, networkInterface)
|
||||
}
|
||||
}
|
||||
//#multicast-group
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue