Re: processing a socket stream

2011-03-03 Thread finbeu
James thx. That is what I need for my project: Some coaching when to fall back to java, when to use clojure function and so on. That's cool. Rgds - Finn On 3 Mrz., 15:59, James Reeves wrote: > On 3 March 2011 14:39, finbeu wrote: > > > But I have right now no clue to do this (navigating to the

Re: processing a socket stream

2011-03-03 Thread James Reeves
On 3 March 2011 14:39, finbeu wrote: > But I have right now no clue to do this (navigating to the stream > forth by a fixed number of bytes). Is there a clojure function to do > this or do I have to fall back to java? You're better off falling back to Java for this. Clojure doesn't yet have a nat

Re: processing a socket stream

2011-03-03 Thread finbeu
With my limited clojure skills I just managed to get the create-server up and running :-) Now I found out that I don't know how to do the following thing (sorry for my beginner questions): The stream arrives with a sequence of 10 characters. These 10 characters (e.g. 000190) give me the exac

Re: processing a socket stream

2011-03-03 Thread Miki
> But how do I notify my working threads that the cache was updated? Are > there some (clojure) patterns that I can use? > > add-watch? (http://clojuredocs.org/clojure_core/clojure.core/add-watch) -- You received this message because you are subscribed to the Google Groups "Clojure" group. T

Re: processing a socket stream

2011-03-03 Thread James Reeves
On 3 March 2011 10:25, finbeu wrote: > But how do I notify my working threads that the cache was updated? Are > there some (clojure) patterns that I can use? Presumably you're starting your worker processes to avoid the overhead of starting a new thread each time? In which case, a better solution

processing a socket stream

2011-03-03 Thread finbeu
Hello! I'm new to clojure and socket programming in particular and I kindly ask you to help me a little bit in how to design my application (all this is still overwhelming). This is a task I gave me to have something usefull while learning the clojure api: The scenario is as follows: I have a c