AppStatus.connectedSocketHandler

UnixSocketExt's handler which connects the connected socket to the registered AppStatus instance, displays static lines and waits until user disconnects. The optional parameter is the wanted terminal width to assume.

class AppStatus
void
connectedSocketHandler
(
cstring[] command
,
scope void delegate
(
cstring
)
write_line
,
scope void delegate
(
ref mstring
)
read_line
,)

Parameters

command cstring[]

command used to call this handler

write_line void delegate
(
cstring
)

delegate to write data to the socket

read_line void delegate
(
ref mstring
)

delegate to read data from the socket

socket IODevice

IODevice instance of the connected socket.

Meta