summaryrefslogtreecommitdiff
path: root/Presence/Server.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-06-25 20:30:50 -0400
committerjoe <joe@jerkface.net>2013-06-25 20:30:50 -0400
commit46010b91c762fcba786e3a8c68e4445dc16b152f (patch)
tree0499914b7ae715a36db9ca196274a167ef9b9587 /Presence/Server.hs
parentbff6fab8f74cde3f12494a9fe658a74bece31765 (diff)
quiet debug prints
Diffstat (limited to 'Presence/Server.hs')
-rw-r--r--Presence/Server.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Presence/Server.hs b/Presence/Server.hs
index a9bd4112..b611fae8 100644
--- a/Presence/Server.hs
+++ b/Presence/Server.hs
@@ -60,8 +60,8 @@ doServer
60 -> IO Socket 60 -> IO Socket
61-} 61-}
62doServer port g startCon = do 62doServer port g startCon = do
63 -- doServer' AF_INET port g startCon
64 doServer' AF_INET6 port g startCon 63 doServer' AF_INET6 port g startCon
64 -- doServer' AF_INET port g startCon
65 65
66doServer' family port g startCon = runServer2 port (runConn2 g) 66doServer' family port g startCon = runServer2 port (runConn2 g)
67 where 67 where
@@ -88,7 +88,7 @@ doServer' family port g startCon = runServer2 port (runConn2 g)
88 setSocketOption sock ReuseAddr 1 88 setSocketOption sock ReuseAddr 1
89 case family of 89 case family of
90 AF_INET -> bindSocket sock (SockAddrInet port iNADDR_ANY) 90 AF_INET -> bindSocket sock (SockAddrInet port iNADDR_ANY)
91 AF_INET6 -> bindSocket sock (SockAddrInet6 port 0 iN6ADDR_ANY 8) 91 AF_INET6 -> bindSocket sock (SockAddrInet6 port 0 iN6ADDR_ANY 0)
92 listen sock 2 92 listen sock 2
93 forkIO $ do 93 forkIO $ do
94 mainLoop sock (ConnId 0) go 94 mainLoop sock (ConnId 0) go