LPFCPServer

class LPFCPServer(val embeddedServer: EmbeddedServer<NettyApplicationEngine, NettyApplicationEngine.Configuration>)

A class-wrapper that manages the lifecycle of a Netty-based server engine.

Constructors

Link copied to clipboard
constructor(embeddedServer: EmbeddedServer<NettyApplicationEngine, NettyApplicationEngine.Configuration>)

Properties

Link copied to clipboard
val embeddedServer: EmbeddedServer<NettyApplicationEngine, NettyApplicationEngine.Configuration>

Functions

Link copied to clipboard

Starts the Netty application engine.

Link copied to clipboard
fun stop(gracePeriodMillis: Long = 500, timeoutMillis: Long = 1500)

Stops the Netty application engine with the specified grace period and timeout.