
9 Dec
2004
9 Dec
'04
9:52 p.m.
G'day all.
Quoting Mårten Dolk
I'm trying to create a client application that needs to read and write data from a socket. What I want to do is to have one thread reading the socket and another thread writing to the same socket, but I can't get it to work.
You could take a look at lambdabot: http://www.scannedinavian.org/repos/lambdabot/lambdabot/ It has a two-thread structure similar to what you appear to need. Look in IRC.hs specifically. Cheers, Andrew Bromage