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).

1  
!7
2  
3  
cmodule C8WebServer > DynPrintLog {
4  
  switchable int httpPort = 80;
5  
  
6  
  start-thread {
7  
    dm_serveHttpFromFunction(httpPort, func(S uri, SS params) {
8  
      ret "Cores: " + numberOfCores() + ", system load: " + systemLoad();
9  
    });
10  
  }
11  
}

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: 192 / 299
Referenced in: [show references]