Module: Rex::IO::StreamAbstraction::Ext

Defined in:
lib/rex/io/stream_abstraction.rb

Overview

Extension information for required Stream interface.

Instance Method Summary collapse

Instance Method Details

#initinfo(peer, local) ⇒ Object

Initializes peer information.



27
28
29
30
# File 'lib/rex/io/stream_abstraction.rb', line 27

def initinfo(peer,local)
  @peer = peer
  @local = local
end

#localinfoObject

Symbolic local information.



42
43
44
# File 'lib/rex/io/stream_abstraction.rb', line 42

def localinfo
  (@local || "Local Pipe")
end

#peerinfoObject

Symbolic peer information.



35
36
37
# File 'lib/rex/io/stream_abstraction.rb', line 35

def peerinfo
  (@peer || "Remote Pipe")
end