Sha256: 0c1a5db6305f120182e43aebebbbe2e801dbc594e5f79d8f9d65be8e52bbc9db

Contents?: true

Size: 550 Bytes

Versions: 20

Compression:

Stored size: 550 Bytes

Contents

# -*- coding: binary -*-

require 'socket'

module Rex
module IO

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

  #
  # Creates a streaming socket pair
  #
  def initialize_abstraction
    self.lsock, self.rsock = Rex::Socket.udp_socket_pair()
  end


  # The left side of the stream (local)
  attr_reader :lsock
  # The right side of the stream (remote)
  attr_reader :rsock

protected
  attr_writer :lsock
  attr_writer :rsock

end

end; end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
rex-2.0.13 lib/rex/io/datagram_abstraction.rb
rex-2.0.12 lib/rex/io/datagram_abstraction.rb
rex-2.0.11 lib/rex/io/datagram_abstraction.rb
rex-2.0.10 lib/rex/io/datagram_abstraction.rb
rex-2.0.9 lib/rex/io/datagram_abstraction.rb
rex-2.0.8 lib/rex/io/datagram_abstraction.rb
rex-2.0.7 lib/rex/io/datagram_abstraction.rb
rex-2.0.5 lib/rex/io/datagram_abstraction.rb
rex-2.0.4 lib/rex/io/datagram_abstraction.rb
dstruct-0.0.1 lib/rex/io/datagram_abstraction.rb
rex-2.0.3 lib/rex/io/datagram_abstraction.rb
librex-0.0.999 lib/rex/io/datagram_abstraction.rb
rex-2.0.2 lib/rex/io/datagram_abstraction.rb
librex-0.0.71 lib/rex/io/datagram_abstraction.rb
librex-0.0.70 lib/rex/io/datagram_abstraction.rb
ssl_scan-0.0.6 lib/ssl_scan/io/datagram_abstraction.rb
ssl_scan-0.0.5 lib/ssl_scan/io/datagram_abstraction.rb
ssl_scan-0.0.4 lib/ssl_scan/io/datagram_abstraction.rb
ssl_scan-0.0.2 lib/ssl_scan/io/datagram_abstraction.rb
ssl_scan-0.0.1 lib/ssl_scan/io/datagram_abstraction.rb