Libraryless. Click here for Pure Java version (28L/1K).
sbool socketIsLocalhost(Socket s) { ret s != null && s.getInetAddress().isLoopbackAddress(); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032717 |
| Snippet name: | socketIsLocalhost |
| Eternal ID of this version: | #1032717/1 |
| Text MD5: | 7254bd31a1f6461c2c6882361417708f |
| Transpilation MD5: | f9b6ada57a70c23d6dcc989fb9d55c39 |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-03 18:12:29 |
| Source code size: | 98 bytes / 3 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 387 / 521 |
| Referenced in: | [show references] |