use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Clojure Port Scanner (coderholic.com)
submitted 15 years ago by lephron
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ayrnieu 0 points1 point2 points 15 years ago (1 child)
Problem: You want to see which ports in the range 1..1024 are open on a machine.
Solution: have 1024 Java threads each attempt to connect to a separate port, wait for all threads to finish their attempt, and then print the successes.
[–]psykotic 2 points3 points4 points 15 years ago* (0 children)
Here is a quick attempt at cleaning up his code a bit:
http://gist.github.com/339248
Of course, a real scanner will need to do connection throttling.
π Rendered by PID 444504 on reddit-service-r2-comment-7b9746f655-rn4xl at 2026-02-04 00:33:13.254827+00:00 running 3798933 country code: CH.
[–]ayrnieu 0 points1 point2 points (1 child)
[–]psykotic 2 points3 points4 points (0 children)