Sign in
apache
/
etch
/
80b6eae7cfc4c7cf6ac5a1c5eedfaca92837c36b
/
.
/
binding-ruby
/
src
/
main
/
ruby
/
transport
/
stream_input.rb
blob: 924cb44c0ae51f8bab06fbe614bb3807fccb468d [
file
] [
log
] [
blame
]
require
'socket'
$port
=
4001
class
StreamIO
streamSocket
=
TCPSocket
::
new
(
'127.0.0.1'
,
$port
)
streamSocket
.
send
(
"Badri\n"
,
5
)
streamOutput
=
streamSocket
.
recv
(
100
)
puts streamOutput
streamSocket
.
close
end