[Haskell-beginners] Network client - reading and writing to a socket

Manfred Lotz manfred.lotz at arcor.de
Sun Jul 31 18:25:04 CEST 2011


On Sun, 31 Jul 2011 12:20:17 -0400
David Place <d at vidplace.com> wrote:

> 
> ____________________
> David Place   
> Owner, Panpipes Ho! LLC
> http://panpipesho.com
> d at vidplace.com
> 
> 
> 
> On Jul 31, 2011, at 12:17 PM, Manfred Lotz wrote:
> 
> >  c <- B.hGet h 1
> >  hFlush h
> >  c' <- B.hGetNonBlocking h 40000 
> 
> Try putting one here too.  Can't hurt right?
> 
> >  return $ B.concat [c,c']
> 

Now I have  

recvMsg h = do
  c <- B.hGet h 1
  hFlush h
  c' <- B.hGetNonBlocking h 40000 
  hFlush h
  return $ B.concat [c,c']


Doesn't help either.




-- 
Manfred





More information about the Beginners mailing list