static bool portResponding(S host, int port) { try { new Socket(host, port).close(); true; } catch { false; } }
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: | #1010553 | 
| Snippet name: | portResponding - TODO: timeout | 
| Eternal ID of this version: | #1010553/1 | 
| Text MD5: | 4c1b5b3d5f9129f48b11e443d0dbf7b3 | 
| Author: | stefan | 
| Category: | javax / networking | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-09-21 00:39:04 | 
| Source code size: | 136 bytes / 8 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 645 / 718 | 
| Referenced in: | [show references] |