gdritter repos ucspi-hs / 94500bb
Example invocations of applications added Getty Ritter 9 years ago
1 changed file(s) with 14 addition(s) and 0 deletion(s). Collapse all Expand all
3131 putStrLn ln
3232 ~~~~
3333
34 To test this with a TCP connection, use
35 [`tcpclient`](http://cr.yp.to/ucspi-tcp/tcpclient.html):
36
37 ~~~~{.bash}
38 tcpclient 127.0.0.1 9999 runhaskell sampleclient.hs
39 ~~~~
40
3441 ## Sample Server
3542
3643 A server which receives a line from the client and sends back the
4249 main :: IO ()
4350 main = ucspiServer $ \ _ -> getLine >>= putstrLn
4451 ~~~~
52
53 To test this with a TCP connection, use
54 [`tcpserver`](http://cr.yp.to/ucspi-tcp/tcpserver.html)
55
56 ~~~~{.bash}
57 tcpserver 127.0.0.1 9999 runhaskell sampleserver.hs
58 ~~~~