Sha256: a5b35c645ed489514aafbe8a252c8fa0ba14a48513a9fb456410d649e5978a1a

Contents?: true

Size: 609 Bytes

Versions: 13

Compression:

Stored size: 609 Bytes

Contents

# -*- coding: binary -*-

require 'rex/io/socket_abstraction'

module Rex
module IO

###
#
# This class provides an abstraction to a stream based
# connection through the use of a streaming socketpair.
#
###
module StreamAbstraction
  include Rex::IO::SocketAbstraction

  #
  # This method creates a streaming socket pair and initializes it.
  #
  def initialize_abstraction
    self.lsock, self.rsock = Rex::Socket.tcp_socket_pair()
    self.lsock.extend(Rex::IO::Stream)
    self.lsock.extend(Ext)
    self.rsock.extend(Rex::IO::Stream)

    self.monitor_rsock("StreamMonitorRemote")
  end

end

end; end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rex-core-0.1.14 lib/rex/io/stream_abstraction.rb
rex-core-0.1.13 lib/rex/io/stream_abstraction.rb
rex-core-0.1.12 lib/rex/io/stream_abstraction.rb
rex-core-0.1.11 lib/rex/io/stream_abstraction.rb
rex-core-0.1.10 lib/rex/io/stream_abstraction.rb
rex-core-0.1.9 lib/rex/io/stream_abstraction.rb
rex-core-0.1.8 lib/rex/io/stream_abstraction.rb
rex-core-0.1.7 lib/rex/io/stream_abstraction.rb
rex-core-0.1.6 lib/rex/io/stream_abstraction.rb
rex-core-0.1.5 lib/rex/io/stream_abstraction.rb
rex-core-0.1.4 lib/rex/io/stream_abstraction.rb
rex-core-0.1.3 lib/rex/io/stream_abstraction.rb
rex-core-0.1.2 lib/rex/io/stream_abstraction.rb