patch from Kris Katterjohn

git-svn-id: file:///home/svn/framework3/trunk@5512 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Matt Miller 2008-05-26 08:42:17 +00:00
parent 30ae3af6fb
commit 2be17ce819
3 changed files with 4 additions and 14 deletions

View File

@ -25,12 +25,7 @@ class IO < Rex::Post::IO
self.filed.read(length)
end
#
# Synonym for sysread.
#
def read(length = nil)
sysread
end
alias read sysread
#
# Writes the supplied buffer to the channel.
@ -39,12 +34,7 @@ class IO < Rex::Post::IO
self.filed.write(buf)
end
#
# Synonym for syswrite.
#
def write(buf)
syswrite(buf)
end
alias write syswrite
#
# Closes the channel.

View File

@ -27,7 +27,7 @@ class Input::Buffer < Rex::Ui::Text::Input
end
def sysread(len = 1)
@sock.rsock.sysread(1)
@sock.rsock.sysread(len)
end
def put(msg)

View File

@ -26,7 +26,7 @@ class Input::Socket < Rex::Ui::Text::Input
# Reads input from the raw socket.
#
def sysread(len = 1)
@sock.sysread(1)
@sock.sysread(len)
end
#