Update for newer Network.Socket versions
This commit is contained in:
parent
999280176b
commit
daa5336bb2
2
chat.hs
2
chat.hs
|
@ -12,7 +12,7 @@ main = do
|
||||||
index <- newTVarIO []
|
index <- newTVarIO []
|
||||||
sock <- socket AF_INET Stream 0
|
sock <- socket AF_INET Stream 0
|
||||||
setSocketOption sock ReuseAddr 1
|
setSocketOption sock ReuseAddr 1
|
||||||
bindSocket sock (SockAddrInet 5999 iNADDR_ANY)
|
bind sock (SockAddrInet 5999 iNADDR_ANY)
|
||||||
listen sock 2
|
listen sock 2
|
||||||
mainLoop index sock 0
|
mainLoop index sock 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue