Sha256: b3de56ef8cafdd3f6fdbb8ef06b533fccd0db326299950e393681847ef124f66

Contents?: true

Size: 532 Bytes

Versions: 43

Compression:

Stored size: 532 Bytes

Contents

#!/usr/bin/env ruby

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

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/io/datagram_abstraction.rb
librex-0.0.63 lib/rex/io/datagram_abstraction.rb
librex-0.0.54 lib/rex/io/datagram_abstraction.rb
librex-0.0.53 lib/rex/io/datagram_abstraction.rb
librex-0.0.52 lib/rex/io/datagram_abstraction.rb
librex-0.0.51 lib/rex/io/datagram_abstraction.rb
librex-0.0.50 lib/rex/io/datagram_abstraction.rb
librex-0.0.49 lib/rex/io/datagram_abstraction.rb
librex-0.0.48 lib/rex/io/datagram_abstraction.rb
librex-0.0.47 lib/rex/io/datagram_abstraction.rb
librex-0.0.46 lib/rex/io/datagram_abstraction.rb
librex-0.0.44 lib/rex/io/datagram_abstraction.rb
librex-0.0.43 lib/rex/io/datagram_abstraction.rb
librex-0.0.42 lib/rex/io/datagram_abstraction.rb
librex-0.0.41 lib/rex/io/datagram_abstraction.rb
librex-0.0.40 lib/rex/io/datagram_abstraction.rb
librex-0.0.39 lib/rex/io/datagram_abstraction.rb
librex-0.0.38 lib/rex/io/datagram_abstraction.rb
librex-0.0.37 lib/rex/io/datagram_abstraction.rb
librex-0.0.36 lib/rex/io/datagram_abstraction.rb