package net
TCP Networking
- Alphabetic
- By Inheritance
- net
- Net
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Address
extends Product with Serializable
An Internet address
- case class ConnectionId (id: Int) extends Product with Serializable
- type Interpreter = FunctionK[NetOp, [β$0$]Either[NetError, β$0$]]
-
trait
Net
extends AnyRef
Network operations
- type NetAction[A] = Free[NetOp, A]
- sealed trait NetError extends AnyRef
- case class Port extends Product with Serializable
-
class
SocketStore
extends AnyRef
Mutable storage of Sockets
Value Members
-
def
connect(address: Address, port: Port): NetAction[ConnectionId]
Opens a connection to the given address and port
Opens a connection to the given address and port
- Definition Classes
- Net
-
def
connectSsl(address: Address, port: Port): NetAction[ConnectionId]
Opens a secure connection to the given address and port
Opens a secure connection to the given address and port
- Definition Classes
- Net
-
def
disconnect(connectionId: ConnectionId): NetAction[Unit]
Disconnects from a connection
Disconnects from a connection
- Definition Classes
- Net
-
def
lookupAddress(hostname: String): NetAction[Address]
Looks up an address by its hostname
Looks up an address by its hostname
- Definition Classes
- Net
-
def
mustRead(connectionId: ConnectionId, length: Int): NetAction[ByteVector]
Keeps re-reading until getting the specified amount of bytes
Keeps re-reading until getting the specified amount of bytes
- Definition Classes
- Net
-
def
read(connectionId: ConnectionId, length: Int): NetAction[ByteVector]
Reads data from a connection
Reads data from a connection
- Definition Classes
- Net
-
def
readUntil(conId: ConnectionId, marker: Byte): NetAction[ByteVector]
Reads bytes until the specified marker byte and returns all bytes including the marker suffix
Reads bytes until the specified marker byte and returns all bytes including the marker suffix
- Definition Classes
- Net
-
def
write(connectionId: ConnectionId, data: ByteVector): NetAction[Unit]
Writes data to a connection
Writes data to a connection
- Definition Classes
- Net
- object Bytes
- object Locks
- object NetAction
- object NetError
-
object
NetInterpreters
Interpreters for network communication
- object Port extends Serializable
- object ScodecInstances
- object SocketStore