Sockets class

Coordinates all the sockets to point to the right RoverType.

Inheritance

Constructors

Sockets()

Properties

addressOverride → InternetAddress?
The InternetAddress to use instead of the address on the rover.
no setter
autonomy DashboardSocket
A UDP socket for controlling autonomy.
latefinal
connectionSummary → String
A rundown of the connection strength of each device.
no setter
data DashboardSocket
A UDP socket for sending and receiving Protobuf data.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
rover RoverType
The rover-like system currently in use.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sockets → List<DashboardSocket>
A list of all the sockets this model manages.
no setter
video DashboardSocket
A UDP socket for receiving video.
latefinal

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → Future<void>
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
override
init() → Future<void>
Initializes any data needed by this model.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onConnect(Device device) → void
Notifies the user when a new device has connected.
onDisconnect(Device device) → void
Notifies the user when a device has disconnected.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() → Future<void>
Resets all the sockets.
setRover(RoverType? value) → Future<void>
Change which rover is being used.
socketForDevice(Device device) DashboardSocket?
Returns the corresponding DashboardSocket for the device
toString() → String
A string representation of this object.
inherited
updateSockets() → Future<void>
Set the right IP addresses for the rover or tank.

Operators

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