gameServer/NetRoutines.hs
changeset 1917 c94045b70142
parent 1847 2178c0fc838c
child 1924 8f8fe856ce9d
--- a/gameServer/NetRoutines.hs	Mon Mar 23 21:09:34 2009 +0000
+++ b/gameServer/NetRoutines.hs	Thu Mar 26 13:54:02 2009 +0000
@@ -12,10 +12,7 @@
 -----------------------------
 import CoreTypes
 import ClientIO
-
-sockAddr2String :: SockAddr -> IO String
-sockAddr2String (SockAddrInet _ hostAddr) = inet_ntoa hostAddr
-sockAddr2String (SockAddrInet6 _ _ (a, b, c, d) _) = return (foldr1 (\a b -> a ++ ":" ++ b) [show a, show b, show c, show d])
+import Utils
 
 acceptLoop :: Socket -> Chan CoreMessage -> Int -> IO ()
 acceptLoop servSock coreChan clientCounter = do