Honoring Asian Pacific American Heritage Month. See how.

connect method

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

int connect (dynamic flags, int mode, InterfaceRequest request, [dynamic parentFlags])

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(OpenFlags flags, int mode, request, [OpenFlags? parentFlags]) {
  // Called when a PseudoDir needs to open this directory
  open(flags, mode, '.', request);
  return ZX.OK;
}