This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Network.Socket | |
import Control.Concurrent | |
import qualified System.IO as IO | |
type HandlerFunc = SockAddr -> String -> IO () | |
serveLog :: String -- ^ Port number or name; 514 is default | |
-> HandlerFunc -- ^ Function to handle incoming messages | |
-> IO () | |
serveLog port handlerfunc = withSocketsDo $ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Youpi |
NewerOlder