RoverSettings mixin
A mixin that handles UpdateSetting commands.
- Superclass constraints
- Mixin applications
Properties
- collection ↔ Service?
-
The main service, or collection of services, of the program, if any.
getter/setter pairinherited
- destination ↔ SocketInfo?
-
The destination port to send to.
getter/setter pairinherited
- device → Device
-
The device this socket will be used on.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- heartbeatInterval → Duration
-
How often to check for new heartbeats.
no setterinherited
- isConnected → bool
-
Whether the device on the other end is connected.
no setterinherited
- logger → BurtLogger
-
A logger to capture important events during operation.
finalinherited
-
messages
→ Stream<
WrappedMessage> -
A stream of WrappedMessages as they arrive in the UDP socket.
no setterinherited
- port → int?
-
The port this socket is listening on. See RawDatagramSocket.bind.
no setterinherited
- quiet → bool
-
Whether to silence "normal" output, like opening/closing and resetting sockets.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
Datagram> -
A stream containing all the data coming out of the socket.
no setterinherited
Methods
-
checkHeartbeats(
) → void -
Sends or waits for heartbeats to or from the other device.
inherited
-
dispose(
) → Future< void> -
Closes the connection to the device.
inherited
-
init(
) → Future< bool> -
Initializes the connection to the device.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnect(
SocketInfo source) → void -
Sets destination to the incoming
source
.inherited -
onDisconnect(
) → Future< void> -
Sends a Disconnect message to the dashboard and sets destination to
null
.inherited -
onHeartbeat(
Heartbeat heartbeat, SocketInfo source) → void -
Handle an incoming heartbeat coming from a given source.
inherited
-
onSettings(
UpdateSetting settings) → Future< void> -
Handles an UpdateSetting command and updates the appropriate setting.
override
-
restart(
) → Future< void> - Restarts this program, usually by disposing and re-initializing the collection.
-
send(
List< int> data, {SocketInfo? destination}) → void -
Sends data to the given destination.
inherited
-
sendMessage(
Message message, {SocketInfo? destination}) → void -
Sends a Message over the socket (in a WrappedMessage).
inherited
-
sendWrapper(
WrappedMessage wrapper, {SocketInfo? destination}) → void -
Sends a WrappedMessage over the socket.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForConnection(
) → Future< void> -
Waits for a connection to be established.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited