patch from Kris Katterjohn
git-svn-id: file:///home/svn/framework3/trunk@5512 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
30ae3af6fb
commit
2be17ce819
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue