bvn
Ruby
code posted
created at 21 Mar 20:03
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/usr/bin/ruby # require 'socket' addrinfo = Socket::getaddrinfo(nil, 'www', nil, Socket::SOCK_STREAM, nil, Socket::AI_PASSIVE) af, port, name, addr = addrinfo.first sock = TCPServer(addr, port) while( client = s.accept ) p "ara!" # ... end 5.times { print "Me encanta Ruby!" } |
304 Bytes in 2 ms with coderay