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)
|
self.filed.read(length)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
alias read sysread
|
||||||
# Synonym for sysread.
|
|
||||||
#
|
|
||||||
def read(length = nil)
|
|
||||||
sysread
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Writes the supplied buffer to the channel.
|
# Writes the supplied buffer to the channel.
|
||||||
|
@ -39,12 +34,7 @@ class IO < Rex::Post::IO
|
||||||
self.filed.write(buf)
|
self.filed.write(buf)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
alias write syswrite
|
||||||
# Synonym for syswrite.
|
|
||||||
#
|
|
||||||
def write(buf)
|
|
||||||
syswrite(buf)
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Closes the channel.
|
# Closes the channel.
|
||||||
|
|
|
@ -27,7 +27,7 @@ class Input::Buffer < Rex::Ui::Text::Input
|
||||||
end
|
end
|
||||||
|
|
||||||
def sysread(len = 1)
|
def sysread(len = 1)
|
||||||
@sock.rsock.sysread(1)
|
@sock.rsock.sysread(len)
|
||||||
end
|
end
|
||||||
|
|
||||||
def put(msg)
|
def put(msg)
|
||||||
|
|
|
@ -26,7 +26,7 @@ class Input::Socket < Rex::Ui::Text::Input
|
||||||
# Reads input from the raw socket.
|
# Reads input from the raw socket.
|
||||||
#
|
#
|
||||||
def sysread(len = 1)
|
def sysread(len = 1)
|
||||||
@sock.sysread(1)
|
@sock.sysread(len)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue