Addign read function >>

git-svn-id: file:///home/svn/incoming/trunk@3472 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2006-01-30 16:37:41 +00:00
parent 9193668e9d
commit 5661598ef3
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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'