TcpServer

zhttp.TcpServer
class TcpServer[Env](port: Int, keepAlive: Int, serverIP: String)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def hostName(address: SocketAddress): String
def isTerminated: Boolean
def myAppLogic(processor: IOChannel => Chunk[Byte] => ZIO[Env, Throwable, Unit]): ZIO[Env, Throwable, ExitCode]
def run(appRoutes: HttpRoutes[Env]*): ZIO[Env, Nothing, ExitCode]
def stop: ZIO[Any, Throwable, Unit]
def terminate: Unit

Deprecated methods

def run(proc: IOChannel => Chunk[Byte] => ZIO[Env, Throwable, Unit]): ZIO[Env, Nothing, ExitCode]

Attributes

Deprecated
true

Concrete fields

val BINDING_SERVER_IP: String
val KEEP_ALIVE: Long
val SERVER_PORT: Int