pekko/akka-docs
Michael R. Maletich a6d3704ef6 !act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features.
For example in Java 7 you can now join a multicast group:

case class JoinGroup(group: InetAddress, networkInterface: NetworkInterface) extends SocketOption {

  override def afterConnect(c: DatagramChannel): Unit = {
    c.join(group, networkInterface)
  }
}

  IO(Udp) ! Udp.Bind(self, new InetSocketAddress(MulticastListener.port),
    options=List(ReuseAddress(true),
      JoinGroup(MulticastListener.group, MulticastListener.interf)))

Other minor changes:

 - changed all methods in SocketOption to take a Channel instead of a Socket.  The socket can be gotten from the Channel but not the reverse.
 - all methods that are called before the bind are now called beforeBind for consistency.
 - All network connections now call the beforeBind and afterConnect.
2014-07-22 20:22:53 -05:00
..
_sphinx =doc #15234 add new google analytics tracker 2014-05-20 11:28:53 +02:00
rst !act #13490 Changed the callback to SocketOption to accept a channel instead of a Socket, this allows for using the nio features. 2014-07-22 20:22:53 -05:00
.history
build.sbt =pro #15031 separate sbt build file for every module 2014-05-14 10:05:09 +02:00