⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (188 Bytes)
Bug #5684
» socket_vs_file.rb
ruby -E ISO-8859-1 socket_vs_file.rb -
vovik (Vladimir Chernis)
, 12/02/2011 10:36 AM
require
'socket'
file
=
open
(
'/dev/urandom'
)
sock
=
TCPSocket
.
new
(
'127.0.0.1'
,
20000
)
puts
"file encoding:
#{
file
.
external_encoding
}
"
puts
"socket encoding:
#{
sock
.
external_encoding
}
"
« Previous
1
2
3
4
Next »
(4-4/4)
Loading...