14 handleComs con st = (con``, st``) where
15 (con`, st`) = send "Hello World!\n" con st
16 (con``, st``) = send "More text here!\n" con` st`
18 Start world = case to of
19 TR_Success = handleComs (toStringSChannel con.sChannel) st`
20 _ = abort "CONNECTION ERROR"
22 (Just adr, st) = lookupIPAddress hostIP world
23 (to, mcon, st`) = connectTCP_MT Nothing (adr,hostPort) st