deleting broken/useless timed_read()

git-svn-id: file:///home/svn/framework3/trunk@6110 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2009-01-10 17:46:23 +00:00
parent 3ee6eaede8
commit a61baaa1eb
1 changed files with 0 additions and 18 deletions

View File

@ -59,24 +59,6 @@ module Rex::Socket::Ip
raise RuntimeError, "IP sockets must use recvfrom(), not read()"
end
#
# Read a datagram from the IP socket with a timeout
#
def timed_read(length = 65535, timeout=def_read_timeout)
begin
if ((rv = Kernel.select([ fd ], nil, nil, timeout)) and
(rv[0]) and (rv[0][0] == fd)
)
return read(length)
else
return ''
end
rescue Exception
return ''
end
end
##
#
# IP non-connected state methods