TCPServer

class TCPServer(port: Int, responseFormat: Format, requestFormat: Format = Format.HEX, onRequest: (String) -> Unit, onCloseConnection: () -> Unit) : Runnable

Constructors

Link copied to clipboard
constructor(port: Int, responseFormat: Format, requestFormat: Format = Format.HEX, onRequest: (String) -> Unit, onCloseConnection: () -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun destroy()
Link copied to clipboard
open override fun run()
Link copied to clipboard
fun sendResponse(response: String)