SimpleSender now works with the companion object

This commit is contained in:
Endre Sándor Varga 2013-02-12 13:08:41 +01:00
parent 63264e847a
commit 32d1a0072b
3 changed files with 5 additions and 8 deletions

View file

@ -22,7 +22,7 @@ class UdpFFIntegrationSpec extends AkkaSpec("akka.loglevel = INFO") with Implici
val simpleSender: ActorRef = {
val commander = TestProbe()
commander.send(IO(UdpFF), SimpleSender(Nil))
commander.send(IO(UdpFF), SimpleSender)
commander.expectMsg(SimpleSendReady)
commander.sender
}

View file

@ -35,6 +35,7 @@ object UdpFF extends ExtensionKey[UdpFFExt] {
case object Unbind extends Command
case class SimpleSender(options: immutable.Traversable[SocketOption] = Nil) extends Command
object SimpleSender extends SimpleSender(Nil)
case object StopReading extends Command
case object ResumeReading extends Command

View file

@ -235,7 +235,7 @@ may handle all close events in the same way.
Throttling Reads and Writes
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TODO
*This section is not yet ready. More coming soon*
Using UDP
---------
@ -264,7 +264,7 @@ manager:
.. code-block:: scala
IO(UdpFF) ! SimpleSender()
IO(UdpFF) ! SimpleSender
// or with socket options:
import akka.io.Udp._
IO(UdpFF) ! SimpleSender(List(SO.Broadcast(true)))
@ -370,12 +370,8 @@ Again, the send does not contain a remote address, as it is always the endpoint
Throttling Reads and Writes
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TODO
*This section is not yet ready. More coming soon*
Integration with Iteratees
--------------------------
TODO
Architecture in-depth
---------------------