Jump to content

Echo server: Difference between revisions

→‎{{header|Ruby}}: Found a bad bug
m (Fixed lang tags.)
(→‎{{header|Ruby}}: Found a bad bug)
Line 573:
 
=={{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.
<lang ruby>require 'socket'
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.