connect method

*[<Null safety>](https://dart.dev/null-safety)*
  • @override

int connect (int flags, int mode, InterfaceRequest request, [int parentFlags = Flags.fsRightsDefault])

override

Connect to this vnode. All flags and modes are defined in https://fuchsia.googlesource.com/fuchsia/+/HEAD/sdk/fidl/fuchsia.io/

By default param #parentFlags is all rights, so that open will allow all rights requested on the incoming request. This param is used by clone to restrict cloning.

Implementation

@override
int connect(int flags, int mode, request,
    [int parentFlags = Flags.fsRightsDefault]) {
  // Called when a PseudoDir needs to open this directory
  open(flags, mode, '.', request);
  return ZX.OK;
}