akka.io
Class Tcp.Bind

java.lang.Object
  extended by akka.io.Tcp.Bind
All Implemented Interfaces:
NoSerializationVerificationNeeded, akka.io.SelectionHandler.HasFailureMessage, Tcp.Command, Tcp.Message, java.io.Serializable, scala.Equals, scala.Product
Enclosing class:
Tcp

public static class Tcp.Bind
extends java.lang.Object
implements Tcp.Command, scala.Product, scala.Serializable

The Bind message is send to the TCP manager actor, which is obtained via TcpExt.manager() in order to bind to a listening socket. The manager replies either with a Tcp.CommandFailed or the actor handling the listen socket replies with a Tcp.Bound message. If the local port is set to 0 in the Bind message, then the Tcp.Bound message should be inspected to find the actual port which was bound to.

See Also:
Serialized Form

Constructor Summary
Tcp.Bind(ActorRef handler, java.net.InetSocketAddress localAddress, int backlog, scala.collection.immutable.Traversable<Inet.SocketOption> options)
           
 
Method Summary
 int backlog()
           
 ActorRef handler()
           
 java.net.InetSocketAddress localAddress()
           
 scala.collection.immutable.Traversable<Inet.SocketOption> options()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface akka.io.Tcp.Command
failureMessage
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

Tcp.Bind

public Tcp.Bind(ActorRef handler,
                java.net.InetSocketAddress localAddress,
                int backlog,
                scala.collection.immutable.Traversable<Inet.SocketOption> options)
Method Detail

handler

public ActorRef handler()

localAddress

public java.net.InetSocketAddress localAddress()

backlog

public int backlog()

options

public scala.collection.immutable.Traversable<Inet.SocketOption> options()