Here is a simple program showing socket programming with Haskell, created for a University assignment. It allows half-duplex (one way at a time) communication between two (or fewer ) computers: import Network import Data.Char (toLower) import Text.Regex.Posix ((=~)) import System.IO (hGetLine,hClose,hPutStrLn,hSetBuffering,BufferMode(..),Handle,stdout) port = 8001 — a nice port number main = withSocketsDo $ [...]
Pages
Tags
.net bind9 Books Broken C# C# code comparison Cool criticism Critique csharp Default Development DNS Firefox Functional programming Game GNOME Haskell horrid Java Links Linux massey Mathematics Me Mono music Odd Programming Reference Review self short silly snippet Thought thoughts Types Ubuntu Unicode Unix Work XMLCategories
Archives
