Try either killing your Java process or changing the port you're binding on. Nathan
On Sun, Aug 2, 2009 at 8:21 AM, Leotis buchanan <leotisbucha...@gmail.com>wrote: > Guys, > > I going through the peepcode tutorial, I am trying to run the code shown > below, but I keep getting : > *Address already in > use > [Thrown class java.net.BindException] * > > I am using ubuntu, is there someway I can specify the bind address to fix > this problem. > > Thanks > > (ns > mire > > (:use [mire > commands]) > > (:use [clojure.contrib server-socket > duck-streams])) > > > > > (def port ( * 1 > 4445)) > (def prompt "> > ") > > > > > > (defn mire-handle-client [in > out] > (binding [*in* (reader > in) > *out* (writer > out)] > (print prompt > (flush) > > > (loop [input > (read-line)] > > (println (execute > input)) > (print > prompt) > > > (flush) > > (recur > (read-line)))))) > > > > > > (def server (create-server port mire-handle-client)) > > > > > > > > On Sat, Aug 1, 2009 at 10:15 PM, Chad Harrington < > chad.harring...@gmail.com> wrote: > >> I have a newbie question about anonymous functions. Why does the first >> form below work and the second form does not? >> >> user> ((fn [] "foo")) >> "foo" >> >> user> (#("foo")) >> ; Evaluation aborted. >> >> Thanks, >> >> Chad >> >> >> > > > -- > Leotis Buchanan > Manager/Electronic Design Systems Engineer > Exterbox.com > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---