Created
January 14, 2016 17:30
-
-
Save domgetter/f49b57024f840e98754a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Client | |
(import 'java.net.Socket) | |
(def output (.getOutputStream (Socket. "localhost" 3000))) | |
(.write output 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Server | |
(import 'java.net.ServerSocket) | |
(def input (.getInputStream (.accept (ServerSocket. 3000)))) | |
(.read input) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment