Libraryless. Click here for Pure Java version (4948L/35K).
1 | // returns port number |
2 | static int serveHttpIfMain() { |
3 | if (isMain()) ret serveHttp(); |
4 | ret 0; |
5 | } |
6 | |
7 | // returns port number |
8 | static int serveHttpIfMain(int port) { |
9 | if (isMain()) ret serveHttp(port); |
10 | ret 0; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027703 |
Snippet name: | serveHttpIfMain |
Eternal ID of this version: | #1027703/2 |
Text MD5: | 83777fd55c115aa0ddb84ded415da96b |
Transpilation MD5: | 726c47b47a9d8a86c26fe926e870b9cb |
Author: | stefan |
Category: | javax / http |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-04-02 19:04:02 |
Source code size: | 218 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 161 / 242 |
Version history: | 1 change(s) |
Referenced in: | [show references] |