Documentation

AbstractDaemonServer
in package
implements ChunkWriterInterface

AbstractYes

Base class for socket-backed Farah daemon servers that process chunk writer requests.

Included for historical compatibility only. This API is deprecated and should not be used in new code.

Tags
author

Daniel Schulz

since
2021-01-01

Table of Contents

Interfaces

ChunkWriterInterface

Constants

DAEMON_ADDRESS  : mixed = '127.0.0.1'
DAEMON_DOMAIN  : mixed = AF_INET
DAEMON_PROTOCOL  : mixed = SOL_TCP
DAEMON_TYPE  : mixed = SOCK_STREAM
STDERR  : mixed = 2
STDOUT  : mixed = 1

Methods

__construct()  : mixed
init()  : void
onInitialize()  : void
onMessage()  : iterable<string|int, mixed>
stop()  : void
toChunks()  : Generator
log()  : iterable<string|int, mixed>
respondWith()  : iterable<string|int, mixed>

Constants

Methods

onMessage()

public abstract onMessage(mixed $message) : iterable<string|int, mixed>
Parameters
$message : mixed
Return values
iterable<string|int, mixed>

log()

protected log(string $message) : iterable<string|int, mixed>
Parameters
$message : string
Return values
iterable<string|int, mixed>

respondWith()

protected respondWith(string $message) : iterable<string|int, mixed>
Parameters
$message : string
Return values
iterable<string|int, mixed>
On this page

Search results