Haskellã§ãTCPã®ãµã¼ãã¼ãæ¸ãã¦ã¿ããã¨æããæå§ãã«ã¨ã³ã¼ãµã¼ãã¼ãæ¸ãã¦ã¿ã¾ããã ã¨ã³ã¼ãµã¼ãã¼ã¨ããã®ã¯ãã¯ã©ã¤ã¢ã³ãããã®å
¥åããã®ã¾ã¾è¿ããµã¼ãã¼ã§ãã 以ä¸ã®è¨äºãåèã«ãã£ã¨ç°¡åãªãã®ãä½ã£ã¦ã¿ã¾ãã A simple TCP server | The Haskell Sequence main = withSocketsDo $ do [p] mainé¨åã§ãã ã½ã±ãããéãã¦listenãã¾ãã acceptLoop soc = do (hd, host, port) mainã®ãã¨ã®å¦çã§ãã ã¯ã©ã¤ã¢ã³ããããããaccept(åãä»ã)ãã¦ãæ°ããã¹ã¬ãããçæãããã¡ãã«å¦çãä»»ãã¾ãã æ°ããã¯ã©ã¢ã³ãã«å¯¾å¿ãã¤ã¥ãããããå¦çãçµãã£ã¦ã¯ããã¾ããã®ã§ããã¡ãã¯ç¡éã«ã¼ããç¶ãã¾ãã echoLoop hd = do sequenc
{{#tags}}- {{label}}
{{/tags}}