Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

21
LINES

< > BotCompany Repo | #1017374 // Monitor Network Access [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14561L/100K).

!7

sclass MonitorNetwork > DynPrintLog {
  transient O myFunction = func(S method, O[] args) {
    print("Access requested: " + method + " " + asList(args));
    true;
  };
  
  start {
    O f = vm_generalMap_get('isAllowed_function);
    if (f == null) {
      vm_generalMap_set('isAllowed_function, myFunction);
      print("Have function");
    }
  }
  
  void cleanMeUp_mn {
    if (vm_generalMap_get('isAllowed_function) == myFunction)
      vm_generalMap_set('isAllowed_function, null);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017374
Snippet name: Monitor Network Access [Dyn Module]
Eternal ID of this version: #1017374/2
Text MD5: a4714385fac4cf1c29207f469a568c1b
Transpilation MD5: 0d8c6bfe2b6104aa0c18ad8a826f246b
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-19 14:44:34
Source code size: 520 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 578
Version history: 1 change(s)
Referenced in: [show references]