Sha256: 5c5914ef1ebc0835e9ccfebd394d1a97627dbc9cf09bbd271e1d49e378b47ba3

Contents?: true

Size: 695 Bytes

Versions: 17

Compression:

Stored size: 695 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.lsock.initialize_synchronization
    self.rsock.initialize_synchronization

    self.monitor_rsock("StreamMonitorRemote")
  end

end

end; end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rex-core-0.1.31 lib/rex/io/stream_abstraction.rb
rex-core-0.1.30 lib/rex/io/stream_abstraction.rb
rex-core-0.1.29 lib/rex/io/stream_abstraction.rb
rex-core-0.1.28 lib/rex/io/stream_abstraction.rb
rex-core-0.1.27 lib/rex/io/stream_abstraction.rb
rex-core-0.1.26 lib/rex/io/stream_abstraction.rb
rex-core-0.1.25 lib/rex/io/stream_abstraction.rb
rex-core-0.1.24 lib/rex/io/stream_abstraction.rb
rex-core-0.1.23 lib/rex/io/stream_abstraction.rb
rex-core-0.1.22 lib/rex/io/stream_abstraction.rb
rex-core-0.1.21 lib/rex/io/stream_abstraction.rb
rex-core-0.1.20 lib/rex/io/stream_abstraction.rb
rex-core-0.1.19 lib/rex/io/stream_abstraction.rb
rex-core-0.1.18 lib/rex/io/stream_abstraction.rb
rex-core-0.1.17 lib/rex/io/stream_abstraction.rb
rex-core-0.1.16 lib/rex/io/stream_abstraction.rb
rex-core-0.1.15 lib/rex/io/stream_abstraction.rb