StubBase class abstract
The base class for stub objects used by RPC servers.
Properties
Methods
-
addPrivilege(
String privilege) → void - Adds a privilege required by client applications to connect to this stub.
-
close(
) → Future< void> - Shuts down this stub.
-
getPort(
String instance, PortType portType) → Port -
Gets a Port associated with a specific client
instance
. -
listen(
{OnError? onError}) → Future< void> - Starts listening to connection requests from clients.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onConnectedEvent(
String sender, String instance) → Future< void> - Called when a connection is established by a client.
-
onDisconnectedEvent(
String sender, String instance) → Future< void> - Called when a connection is closed by a client.
-
onReceivedEvent(
String sender, String instance, Parcel parcel) → Future< void> - Called when data are received from a client.
-
setTrusted(
bool trusted) → void - Sets whether this stub should only allow trusted connections.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited