module Rex::IO::DatagramAbstraction

This class provides an abstraction to a datagram based connection through the use of a datagram socketpair.

Attributes

lsock[RW]

The left side of the stream (local)

rsock[RW]

The right side of the stream (remote)

Public Instance Methods

initialize_abstraction() click to toggle source

Creates a streaming socket pair

# File lib/rex/io/datagram_abstraction.rb, line 18
def initialize_abstraction
  self.lsock, self.rsock = Rex::Socket.udp_socket_pair()
end