LogbookService class final

The writer of logbook, listening on socket.

Properties

hashCode → int
The hash code for this object.
no setterinherited
logbook → Logbook
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
Stops listening, ends its subscribers, removes the sockets and closes the logbook.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

start(Logbook logbook, SenderTable senders, File socket, {File? readSocket, UserId? uidOf(String user) = _uidOfUser, SocketUserReader? socketUserReader}) → Future<LogbookService>
Starts writing logbook for the senders in senders, listening on socket, and for readers on readSocket when it is given. Reads the chains back from the logbook, then adds the started entry. Throws a StateError when another service is listening on either socket; a socket file nothing listens on is replaced. uidOf finds the users a users-assigned-to-trajectory names, as SenderTable.parse's does. socketUserReader reads who is on the other end of socket, the running kernel's reader by default.

Constants

maxRequest → const int
The largest request it reads, in bytes.