Skip to content

Commit

Permalink
Added very basic README
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Jun 4, 2011
1 parent 68e6c96 commit fe00c3d
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
@@ -1,10 +1,25 @@
# tcp-server
# TCP-Server

FIXME: write description
A Clojure library for creating TCP servers. Similar in scope to the
`clojure.contrib.server-socket` library, but without the baggage of
having to depend on Clojure-Contrib.

## Usage

FIXME: write
This will create a small server that sends "Hello World" to any
connecting client, then closes the connection.

(use 'net.tcp.server)

(defn handler [reader writer]
(.append writer "Hello World"))

(def server
(tcp-server
:port 5000
:handler (wrap-io handler)))

(start server)

## License

Expand Down

0 comments on commit fe00c3d

Please sign in to comment.