Echo server: Difference between revisions

Content added Content deleted
m (Fixed lang tags.)
(→‎{{header|Ruby}}: Found a bad bug)
Line 573: Line 573:


=={{header|Ruby}}==
=={{header|Ruby}}==
{{incorrect|Ruby|You cannot send two lines on the same connection and have them both echoed.}}
Note: largely untested: may not handle multiple simultaneously connections well.
Note: largely untested: may not handle multiple simultaneously connections well.
<lang ruby>require 'socket'
<lang ruby>require 'socket'