public static final class Tcp.Bind extends java.lang.Object implements Tcp.Command, scala.Product, scala.Serializable
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.
param: handler The actor which will receive all incoming connection requests
in the form of Tcp.Connected
messages.
param: localAddress The socket address to bind to; use port zero for
automatic assignment (i.e. an ephemeral port, see Tcp.Bound
)
param: backlog This specifies the number of unaccepted connections the O/S kernel will hold for this port before refusing connections.
param: options Please refer to the Tcp.SO
object for a list of all supported options.
Constructor and Description |
---|
Bind(ActorRef handler,
java.net.InetSocketAddress localAddress,
int backlog,
scala.collection.immutable.Traversable<Inet.SocketOption> options,
boolean pullMode) |
Modifier and Type | Method and Description |
---|---|
int |
backlog() |
ActorRef |
handler() |
java.net.InetSocketAddress |
localAddress() |
scala.collection.immutable.Traversable<Inet.SocketOption> |
options() |
boolean |
pullMode() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
failureMessage
public Bind(ActorRef handler, java.net.InetSocketAddress localAddress, int backlog, scala.collection.immutable.Traversable<Inet.SocketOption> options, boolean pullMode)
public ActorRef handler()
public java.net.InetSocketAddress localAddress()
public int backlog()
public scala.collection.immutable.Traversable<Inet.SocketOption> options()
public boolean pullMode()