Sha256: 0663d48b3f8836a7c03c8c8820b6abb9215e281c629716a0870650a0f266a065

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

#!/usr/bin/env ruby
# -*- 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

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/io/datagram_abstraction.rb
librex-0.0.66 lib/rex/io/datagram_abstraction.rb