Module: Rex::IO::DatagramAbstraction

Defined in:
lib/rex/io/datagram_abstraction.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lsockObject

The left side of the stream (local)



25
26
27
# File 'lib/rex/io/datagram_abstraction.rb', line 25

def lsock
  @lsock
end

#rsockObject

The right side of the stream (remote)



27
28
29
# File 'lib/rex/io/datagram_abstraction.rb', line 27

def rsock
  @rsock
end

Instance Method Details

#initialize_abstractionObject

Creates a streaming socket pair



19
20
21
# File 'lib/rex/io/datagram_abstraction.rb', line 19

def initialize_abstraction
  self.lsock, self.rsock = Rex::Socket.udp_socket_pair()
end