Addign read function >>
git-svn-id: file:///home/svn/incoming/trunk@3472 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
9193668e9d
commit
5661598ef3
|
@ -106,6 +106,13 @@ module Stream
|
||||||
return write(buf.to_s)
|
return write(buf.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
#
|
||||||
|
# This method calls get_once() to read pending data from the socket
|
||||||
|
#
|
||||||
|
def >>
|
||||||
|
get_once
|
||||||
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# This method writes to the stream, optionally timing out after a period of
|
# This method writes to the stream, optionally timing out after a period of
|
||||||
# time.
|
# time.
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
|
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
|
||||||
|
|
||||||
|
require 'rex'
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
require 'rex/socket/tcp'
|
require 'rex/socket/tcp'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue