MessageSocket

com.github.lavrov.bittorrent.wire.MessageSocket$
See theMessageSocket companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

case class Error(message: String, cause: Throwable) extends Exception

Attributes

Graph
Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
case class OversizedMessage(size: Long, maxSize: Long) extends Throwable

Attributes

Graph
Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def connect[F[_]](selfId: PeerId, peerInfo: PeerInfo, infoHash: InfoHash)(using F: Async[F], socketGroup: SocketGroup[F], logger: Logger[F]): Resource[F, MessageSocket[F]]
def handshake[F[_]](selfId: PeerId, infoHash: InfoHash, socket: Socket[F])(using F: Temporal[F]): F[Handshake]

Concrete fields

val MaxMessageSize: Long
val readTimeout: FiniteDuration
val writeTimeout: FiniteDuration