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

11
LINES

< > BotCompany Repo | #1025642 // C8 Web Server

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

Uses 911K of libraries. Click here for Pure Java version (4149L/25K).

!7

cmodule C8WebServer > DynPrintLog {
  switchable int httpPort = 80;
  
  start-thread {
    dm_serveHttpFromFunction(httpPort, func(S uri, SS params) {
      ret "Cores: " + numberOfCores() + ", system load: " + systemLoad();
    });
  }
}

Author comment

Began life as a copy of #1023718

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025642
Snippet name: C8 Web Server
Eternal ID of this version: #1025642/1
Text MD5: a5eb72a8ef497cc5add6709eee578a20
Transpilation MD5: fa110edf352a8a8cfb44dc4c354ea017
Author: stefan
Category: javax / html
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-11 00:32:13
Source code size: 253 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 217
Referenced in: [show references]