connect method

*[<Null safety>](*
  • @override

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


Connect to this vnode. All flags and modes are defined in

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.


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;