NamedRpcServerNetworkerPipe<I extends RpcFunctionName, O extends RpcFunctionName> class final

Inheritance
Mixed-in types

Constructors

NamedRpcServerNetworkerPipe({RpcConfig config = const RpcConfig(), bool filter(RpcNetworkerPacket, Channel)?, bool validate = true})

Properties

config → RpcConfig
finalinherited
defaultReceiverChannel → int
no setterinherited
filter → bool Function(RpcNetworkerPacket, Channel)?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
isServer → bool
no setterinherited
read → Stream<NetworkerPacket<RpcNetworkerPacket>>
no setterinherited
receiverChannel → Channel?
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validate → bool
finalinherited
write → Stream<NetworkerPacket<Uint8List>>
no setterinherited

Methods

callFunction(int function, Uint8List data, {Channel sender = kAnyChannel, bool forceLocal = false}) → bool
inherited
callNamedFunction(I name, Uint8List data, {Channel sender = kAnyChannel, bool forceLocal = false}) → bool
inherited
connect(NetworkerPipe<RpcNetworkerPacket, dynamic> pipe) → void
inherited
decode(Uint8List data) → RpcNetworkerPacket
inherited
decodeChannel(Uint8List data, Channel channel) → FutureOr<(RpcNetworkerPacket, Channel)?>
inherited
disconnect(NetworkerPipe<RpcNetworkerPacket, dynamic> pipe) → void
inherited
dispose() → void
Disposes all stream controllers and disconnects all connected pipes.
inherited
encode(RpcNetworkerPacket data) → Uint8List
inherited
encodeChannel(RpcNetworkerPacket data, Channel channel) → FutureOr<(Uint8List, Channel)?>
inherited
getFunction(int function) → RawNetworkerPipe?
inherited
getNamedFunction(I name) → RawNetworkerPipe?
inherited
isValidCall(int function, Channel sender, [Channel receiver = kAnyChannel]) → bool
inherited
isValidNamedCall(I name, Channel sender, [Channel receiver = kAnyChannel]) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onMessage(Uint8List data, [Channel channel = kAnyChannel]) → Future<void>
inherited
registerFunction(int function, {bool canRunLocally = false, RpcNetworkerMode mode = RpcNetworkerMode.authority}) → RawNetworkerPipe
inherited
registerNamedFunction(I name) → RawNetworkerPipe
inherited
registerNamedFunctions(List<I> functions) → List<RawNetworkerPipe>
inherited
runFunction(RpcNetworkerPacket packet, {bool forceLocal = false, Channel? channel}) → bool
inherited
runNamedFunction(RpcNetworkerPacket packet, {bool forceLocal = false, Channel? channel}) → bool
inherited
sendFunction(int function, Uint8List data, {Channel channel = kAnyChannel, Channel? receiver, bool forceLocal = false}) → void
inherited
sendMessage(RpcNetworkerPacket data, [Channel channel = kAnyChannel]) → Future<void>
inherited
sendNamedFunction(O name, Uint8List data, {Channel channel = kAnyChannel, bool forceLocal = false, Channel? receiver}) → void
inherited
sendPacket(Uint8List data, Channel channel) → FutureOr<void>
inherited
toString() → String
A string representation of this object.
inherited
unregisterFunction(int function) → bool
inherited
unregisterNamedFunction(I name) → bool
inherited

Operators

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