2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-13 20:13:19 +00:00
This commit is contained in:
2024-06-23 14:10:44 +03:00
parent 09c730ebc4
commit 3087e0d1ad
5 changed files with 710 additions and 829 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -87,7 +87,7 @@ class DistributedResource extends IResource {
void destroy() {
_destroyed = true;
_attached = false;
_connection?.detachResource(_instanceId as int);
_connection?.sendDetachRequest(_instanceId as int);
emitArgs("destroy", [this]);
}
@@ -391,12 +391,7 @@ class DistributedResource extends IResource {
var reply = new AsyncReply<dynamic>();
var con = _connection as DistributedConnection;
var parameters = Codec.compose(value, con);
(con.sendRequest(IIPPacketAction.SetProperty)
..addUint32(_instanceId as int)
..addUint8(index)
..addDC(parameters))
.done()
con.sendSetProperty(_instanceId as int, index, value)
..then((res) {
// not really needed, server will always send property modified,
// this only happens if the programmer forgot to emit in property setter

View File

@@ -1,11 +1,13 @@
import '../../Data/IntType.dart';
class IIPAuthPacketIAuthHeader
{
static int Reference = 0;
static int Destination = 1;
static int Clue = 2;
static int RequiredFormat = 3;
static int ContentFormat = 4;
static int Content = 5;
static int Timeout = 6;
}
class IIPAuthPacketIAuthHeader {
static UInt8 Reference = UInt8(0);
static UInt8 Destination = UInt8(1);
static UInt8 Clue = UInt8(2);
static UInt8 RequiredFormat = UInt8(3);
static UInt8 ContentFormat = UInt8(4);
static UInt8 Content = UInt8(5);
static UInt8 Trials = UInt8(6);
static UInt8 Issue = UInt8(7);
static UInt8 Expire = UInt8(8);
}