DistributedConnection class

Inheritance
Mixed in types

Constructors

DistributedConnection()
Create a new distributed connection.

Properties

hashCode int
The hash code for this object.
no setterinherited
instance Instance?
IResource interface.
getter/setter pairoverride
isConnected bool
no setterinherited
lastAction DateTime
no setterinherited
localEndPoint IPEndPoint?
no setterinherited
localUsername String
Local username to authenticate ourselves.
no setter
properyModified Stream
no setterinherited
remoteEndPoint IPEndPoint?
no setterinherited
remoteUsername String
Peer's username.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session Session?
Working domain.
no setter
socket ISocket?
no setterinherited
template TemplateDescriber
no setteroverride
variables KeyList<String, dynamic>
KeyList to store user variables related to this connection.
final

Methods

assign(ISocket socket) → void
Assign a socket to the connection.
override
close() → void
inherited
connect({AuthenticationMethod method = AuthenticationMethod.None, ISocket? socket, String? hostname, int? port, String? username, int? tokenIndex, DC? passwordOrToken, String? domain, bool useWebsocket = false, bool secureWebSocket = false}) AsyncReply<bool>
connected() → void
inherited
create(IStore store, IResource parent, String className, List parameters, Structure attributes, Structure values) AsyncReply<DistributedResource?>
Create a new resource.
dataReceived(NetworkBuffer data) → void
override
destroy() → void
inherited
disconnected() → void
override
emitArgs(String event, List arguments) → dynamic
inherited
emitProperty(String name) → dynamic
inherited
fetch(int id) AsyncReply<DistributedResource>
Fetch a resource from the other end
get(String path) AsyncReply<IResource?>
Get a resource by its path.
override
getAttributes(IResource resource, [List<String>? attributes = null]) AsyncReply<Structure>
getChildren(IResource resource) AsyncReply<List<IResource?>>
getLinkTemplates(String link) AsyncReply<List<TypeTemplate>>
getParents(IResource resource) AsyncReply<List<IResource?>>
getProperty(String name) → dynamic
override
getRecord(IResource resource, DateTime fromDate, DateTime toDate) AsyncReply<KeyList<PropertyTemplate, List<PropertyValue>>?>
Get resource history.
override
getTemplate(Guid classId) AsyncReply<TypeTemplate?>
Get the TypeTemplate for a given class Id.
iipEventAttributesUpdated(int resourceId, DC attributes) → void
iipEventChildAdded(int resourceId, int childId) → void
iipEventChildRemoved(int resourceId, int childId) → void
iipEventEventOccurred(int resourceId, int index, DC content) → void
iipEventPropertyUpdated(int resourceId, int index, DC content) → void
iipEventRenamed(int resourceId, DC name) → void
iipEventResourceDestroyed(int resourceId) → void
iipEventResourceReassigned(int resourceId, int newResourceId) → void
iipReply(int callbackId, [List? results = null]) → void
iipReplyInvoke(int callbackId, DC result) → void
iipReportChunk(int callbackId, DC data) → void
iipReportError(int callbackId, ErrorType errorType, int errorCode, String? errorMessage) → void
iipReportProgress(int callbackId, ProgressType type, int value, int max) → void
iipRequestAddChild(int callback, int parentId, int childId) → void
iipRequestAttachResource(int callback, int resourceId) → void
iipRequestClearAttributes(int callback, int resourceId, DC attributes, [bool all = false]) → void
iipRequestCreateResource(int callback, int storeId, int parentId, DC content) → void
iipRequestDeleteResource(int callback, int resourceId) → void
iipRequestDetachResource(int callback, int resourceId) → void
iipRequestGetAttributes(int callback, int resourceId, DC attributes, [bool all = false]) → void
iipRequestInquireResourceHistory(int callback, int resourceId, DateTime fromDate, DateTime toDate) → void
iipRequestInvokeFunctionArrayArguments(int callback, int resourceId, int index, DC content) → void
iipRequestInvokeFunctionNamedArguments(int callback, int resourceId, int index, DC content) → void
iipRequestLinkTemplates(int callback, String resourceLink) → void
iipRequestListen(int callback, int resourceId, int index) → void
iipRequestQueryResources(int callback, String resourceLink) → void
iipRequestReattachResource(int callback, int resourceId, int resourceAge) → void
iipRequestRemoveChild(int callback, int parentId, int childId) → void
iipRequestRenameResource(int callback, int resourceId, DC name) → void
IIPRequestResourceAttribute(int callback, int resourceId) → void
iipRequestResourceChildren(int callback, int resourceId) → void
iipRequestResourceParents(int callback, int resourceId) → void
iipRequestSetProperty(int callback, int resourceId, int index, DC content) → void
iipRequestTemplateFromClassId(int callback, Guid classId) → void
iipRequestTemplateFromClassName(int callback, String className) → void
iipRequestTemplateFromResourceId(int callback, int resourceId) → void
iipRequestUnlisten(int callback, int resourceId, int index) → void
iipRequestUpdateAttributes(int callback, int resourceId, DC attributes, [bool clearAttributes = false]) → void
init() → void
invoke(String name, List arguments) → dynamic
override
override
modify(IResource resource, String propertyName, dynamic value, int age, DateTime dateTime) bool
override
networkClose(ISocket sender) → void
inherited
networkConnect(ISocket sender) → void
inherited
networkReceive(ISocket sender, NetworkBuffer buffer) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, dynamic callback) → dynamic
inherited
on(String event, Function callback) → dynamic
inherited
processPacket(DC msg, int offset, int ends, NetworkBuffer data, int chunkId) int
put(IResource resource) AsyncReply<bool>
Resource interface
override
query(String path) AsyncReply<List<IResource?>>
Query resources at specific link.
reconnect() Future<bool>
record(IResource resource, String propertyName, dynamic value, int age, DateTime dateTime) bool
override
register(String event) → dynamic
inherited
remove(IResource resource) bool
Distributed server responsible for this connection, usually for incoming connections.
override
removeAttributes(IResource resource, [List<String>? attributes = null]) AsyncReply<bool>
retrieve(int iid) AsyncReply<IResource?>
Retrive a resource by its instance Id.
override
send(DC data) → void
Send raw data through the connection.
override
sendChunk(int callbackId, dynamic chunk) → void
sendDetachRequest(int instanceId) AsyncReply?
sendError(ErrorType type, int callbackId, int errorCode, [String? errorMessage]) → void
sendEvent(int evt) SendList
sendInvokeByArrayArguments(int instanceId, int index, List parameters) AsyncReply
sendInvokeByNamedArguments(int instanceId, int index, Structure parameters) AsyncReply
sendListenRequest(int instanceId, int index) AsyncReply
sendParams([AsyncReply<List?>? reply = null]) SendList
Send data to the other end as parameters
sendProgress(int callbackId, int value, int max) → void
sendReply(int action, int callbackId) SendList
sendRequest(int action) SendList
Send IIP request.
sendString(String data) → void
inherited
sendUnlistenRequest(int instanceId, int index) AsyncReply
setAttributes(IResource resource, Structure attributes, [bool clearAttributes = false]) AsyncReply<bool>
setProperty(String name, dynamic value) → dynamic
override
toString() String
A string representation of this object.
inherited
trigger(ResourceTrigger trigger) AsyncReply<bool>
override
unassign() ISocket?
inherited

Operators

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