NetworkClientGeneralLib class
Constructors
- NetworkClientGeneralLib({String event_update = "update", String multiCastGroup = '224.0.0.167', int port = 5194, bool isKeepRunning = true})
Properties
- event_emitter → EventEmitter
-
final
- event_update → String
-
final
-
general_socket_data
→ Map<
String, GeneralSocketData> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isKeepRunning ↔ bool
-
getter/setter pair
- multiCastGroup ↔ String
-
getter/setter pair
-
network_interface_connecteds
→ List<
NetworkInterface> -
final
- port ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void -
createNewSocketId(
{String? newSocketId}) → Future< String> -
emit(
{required String eventName, Object? context, Object? data}) → void -
initialized(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
{required String eventName, Object? context, required FutureOr onUpdate(GeneralSocketMessageData generalSocketMessageData), FutureOr onError(Object e, StackTrace stackTrace)?}) → EventEmitterListener -
reload(
{required NetworkInterface networkInterface}) → Future< bool> -
reloadAll(
) → Future< void> -
sendJson(
{required Map value, required String socketId}) → int -
sendMultiCastJson(
{required Map value}) → Future< void> -
sendMultiCastRaw(
{required List< int> buffer}) → Future<void> -
sendMultiCastText(
{required String value}) → Future< void> -
sendRaw(
{required List< int> buffer, required String socketId}) → int -
sendText(
{required String value, required String socketId}) → int -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited