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
-
#lsock ⇒ Object
readonly
The left side of the stream (local).
-
#rsock ⇒ Object
readonly
The right side of the stream (remote).
Instance Method Summary collapse
-
#initialize_abstraction ⇒ Object
Creates a streaming socket pair.
Instance Attribute Details
#lsock ⇒ Object
The left side of the stream (local)
25 26 27 |
# File 'lib/rex/io/datagram_abstraction.rb', line 25 def lsock @lsock end |
#rsock ⇒ Object
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_abstraction ⇒ Object
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 |