Re: Socket module, graphs

2000-02-01 Thread Hannah Schroeter
Hello! On Tue, Feb 01, 2000 at 12:10:33PM +0100, Sven Panne wrote: > Hannah Schroeter wrote: > > [...] There should be a call to > > SocketPrim.setSocketOption sock SocketPrim.ReuseAddr 1 > > before bindSocket. > > *wink* to the GHC team :-) > OK, understood. :-) I've added this to Socket

Re: Socket module, graphs

2000-02-01 Thread Sven Panne
Hannah Schroeter wrote: > [...] There should be a call to > SocketPrim.setSocketOption sock SocketPrim.ReuseAddr 1 > before bindSocket. > > *wink* to the GHC team :-) OK, understood. :-) I've added this to SocketPrim for AF_INET, but I'm unsure about the AF_UNIX case. Is it necessary? Does

Re: Socket module, graphs

2000-01-31 Thread Hannah Schroeter
Hello! On Mon, Jan 31, 2000 at 09:11:14PM +0100, Wojciech Moczydlowski, Jr wrote: > [...] > main = do > socket <- listenOn (PortNumber (mkPortNumber 6665)) > (handle, hn) <- accept socket > putStrLn hn" - it's just supposed to say who called and exit. > Nevertheless, when I try

Socket module, graphs

2000-01-31 Thread Wojciech Moczydlowski, Jr
I have 2 questions. First is on the Socket module - I have a program (server) which looks like: "module Main where import Socket main = do socket <- listenOn (PortNumber (mkPortNumber 6665)) (handle, hn) <- accept socket putStrLn hn" - it's just supposed to say who cal