Dokka MultiModule Example
androidJvm
pos-service
/
su.ips.pos_service.service
/
TCPServer
TCPServer
class
TCPServer
(
port
:
Int
,
responseFormat
:
Format
,
requestFormat
:
Format
=
Format.HEX
,
onRequest
:
(
String
)
->
Unit
,
onCloseConnection
:
(
)
->
Unit
)
:
Runnable
Members
Constructors
TCPServer
Link copied to clipboard
constructor
(
port
:
Int
,
responseFormat
:
Format
,
requestFormat
:
Format
=
Format.HEX
,
onRequest
:
(
String
)
->
Unit
,
onCloseConnection
:
(
)
->
Unit
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
close
Connection
Link copied to clipboard
fun
closeConnection
(
)
destroy
Link copied to clipboard
fun
destroy
(
)
run
Link copied to clipboard
open
override
fun
run
(
)
send
Response
Link copied to clipboard
fun
sendResponse
(
response
:
String
)