SocketService class

Constructors

SocketService({required String ip, required int port})

Properties

hashCode int
The hash code for this object.
no setterinherited
ip String
final
isConnected bool
no setter
logIdentifier String
getter/setter pair
logSuffix String
getter/setter pair
messageID int
getter/setter pair
onConnectionClose ↔ void Function()?
getter/setter pair
onConnectionLost ↔ void Function()?
getter/setter pair
port int
final
requestHandler ↔ void Function(CuppsBase, String)?
getter/setter pair
retry bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
temp String
getter/setter pair

Methods

disableRetry() → void
disconnect({bool disableRetry = false}) Future<void>
enableRetry() → void
formatXMLString(String xml) String
initialize({required void rh(CuppsBase, String), required void onClose(), required void onLost(), required String logID, required String logSuff}) Future<bool>
msgSplitter(String msg, int l) List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullIt({bool disableRetry = false}) Future<void>
respond(String data) Future<void>
sendSocketMessage(String data, {bool shouldLog = true}) Future<String>
setConnectionChecker({Duration timeout = const Duration(seconds: 10), Duration interval = const Duration(seconds: 30), required Function retryFunction, required String deviceQueryDeviceName, required Function useRetryResponse, required bool shouldCheck()}) → void
toString() String
A string representation of this object.
inherited

Operators

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