fs2.io.net.ServerSocket
See theServerSocket companion object
sealed trait ServerSocket[F[_]] extends SocketInfo[F]
Represents a bound TCP server socket.
Note some platforms do not support getting and setting socket options on server sockets so take care when using getOption
and setOption
.
Client sockets can be accepted by pulling on the accept
stream. A concurrent server that is limited to maxAccept
concurrent clients is accomplished by b.accept.map(handleClientSocket).parJoin(maxAccept)
.
Attributes
- Companion
- object
- Source
- ServerSocket.scala
- Graph
-
- Supertypes
Members list
In this article