Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
7
Task/Echo-server/Clojure/echo-server.clj
Normal file
7
Task/Echo-server/Clojure/echo-server.clj
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(use '[clojure.contrib.server-socket :only (create-server)])
|
||||
(use '[clojure.contrib.duck-streams :only (read-lines write-lines)])
|
||||
|
||||
(defn echo [input output]
|
||||
(write-lines (java.io.PrintWriter. output true) (read-lines input)))
|
||||
|
||||
(create-server 12321 echo)
|
||||
Loading…
Add table
Add a link
Reference in a new issue