IncomingConnection

org.apache.pekko.stream.scaladsl.Tcp.IncomingConnection
final case class IncomingConnection(localAddress: InetSocketAddress, remoteAddress: InetSocketAddress, flow: Flow[ByteString, ByteString, NotUsed])

Represents an accepted incoming TCP connection.

Attributes

Source
Tcp.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def handleWith[Mat](handler: Flow[ByteString, ByteString, Mat])(implicit materializer: Materializer): Mat

Handles the connection using the given flow, which is materialized exactly once and the respective materialized instance is returned.

Handles the connection using the given flow, which is materialized exactly once and the respective materialized instance is returned.

Convenience shortcut for: flow.joinMat(handler)(Keep.right).run().

Attributes

Source
Tcp.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product