Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Ruby Socket example
SUBMITTED BY:
Guest
DATE:
May 21, 2015, 2:02 p.m.
FORMAT:
Ruby
SIZE:
278 Bytes
Raw
Download
Tweet
HITS:
814
Go to comments
Report
puts
'========================================='
require
'socket'
puts
'== daytime server =='
# Open a socket to a local daytime server, read, and print.
print
TCPSocket
.
open
(
'129.6.15.28'
,
'daytime'
)
.
read
puts
'========================================='
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus