Module: Rex::IO::DatagramAbstraction
- Includes:
- SocketAbstraction
- 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
Attributes included from SocketAbstraction
Instance Method Summary collapse
-
#initialize_abstraction ⇒ Object
Creates a streaming socket pair.
Methods included from SocketAbstraction
#cleanup_abstraction, #close, #localinfo, #peerinfo, #shutdown, #sysread, #syswrite
Instance Method Details
#initialize_abstraction ⇒ Object
Creates a streaming socket pair
20 21 22 |
# File 'lib/rex/io/datagram_abstraction.rb', line 20 def initialize_abstraction self.lsock, self.rsock = Rex::Socket.udp_socket_pair end |