final case class Connect(remoteAddress: InetSocketAddress, localAddress: Option[InetSocketAddress] = None, options: Traversable[SocketOption] = Nil, timeout: Option[FiniteDuration] = None, pullMode: Boolean = false) extends Command with Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Connect
- Serializable
- Product
- Equals
- Command
- HasFailureMessage
- Message
- NoSerializationVerificationNeeded
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Connect(remoteAddress: InetSocketAddress, localAddress: [InetSocketAddress] = None, options: Traversable[SocketOption] = Nil, timeout: [FiniteDuration] = None, pullMode: Boolean = false)
- remoteAddress
is the address to connect to
- localAddress
optionally specifies a specific address to bind to
- options
Please refer to the
Tcp.SO
object for a list of all supported options.
Value Members
- def failureMessage: CommandFailed
- Definition Classes
- Command → HasFailureMessage
- val localAddress: [InetSocketAddress]
- val options: Traversable[SocketOption]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val pullMode: Boolean
- val remoteAddress: InetSocketAddress
- val timeout: [FiniteDuration]
The Connect message is sent to the TCP manager actor, which is obtained via TcpExt#manager. Either the manager replies with a CommandFailed or the actor handling the new connection replies with a Connected message.
is the address to connect to
optionally specifies a specific address to bind to
Please refer to the
Tcp.SO
object for a list of all supported options.