examples/epoll_server.rb in io-epoll-0.1.0 vs examples/epoll_server.rb in io-epoll-0.2.0
- old
+ new
@@ -2,10 +2,11 @@
require 'io/epoll'
require 'socket'
server = TCPServer.open(4000)
+puts "run http://127.0.0.1:4000/"
response = [
"HTTP/1.0 200 OK\r\n",
"Content-Length: 5\r\n",
"Content-Type: text/html\r\n",
@@ -42,6 +43,5 @@
else
raise IOError
end
end
end
-