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