Sending multiline message via sockets without closing the connection
- by Yasir Arsanukaev
Hello folks.
Currently I have this code of my client-side Haskell application:
import Network.Socket
import Network.BSD
import System.IO hiding (hPutStr, hPutStrLn, hGetLine, hGetContents)
import System.IO.UTF8
connectserver :: HostName -- ^ Remote hostname, or localhost
-> String -- ^ Port number or…