1 | static L<MyHTTPD> serveHttp_multiplePorts_servers = synchroList(); |
2 | |
3 | static void serveHttp_multiplePorts(int... ports) ctex { |
4 | for (int port : ports) { |
5 | MyHTTPD httpd = new MyHTTPD(port); |
6 | serveHttp_multiplePorts_servers.add(httpd); |
7 | httpd.start(); |
8 | } |
9 | } |
10 | |
11 | static void cleanMeUp_serveHttp_multiplePorts() { |
12 | for (MyHTTPD httpd : cloneList(serveHttp_multiplePorts_servers)) { |
13 | pcall { httpd.stop(); } |
14 | serveHttp_multiplePorts_servers.remove(httpd); |
15 | } |
16 | } |
Began life as a copy of #1001648
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011858 |
Snippet name: | serveHttp_multiplePorts |
Eternal ID of this version: | #1011858/1 |
Text MD5: | 3fd5a5e0a015e8656ca5d95ee22d289c |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-08 03:59:05 |
Source code size: | 483 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 388 / 435 |
Referenced in: | [show references] |