class Dizby::Messenger

Attributes

remote_uri[R]
server[R]

Public Class Methods

new(server, stream) click to toggle source
# File lib/dizby/stream/messenger.rb, line 15
def initialize(server, stream)
  @server = server

  # stream needs to have the read(int), write(str), and close() methods
  # this value can be overloaded in the client/server classes for a protocol
  @stream = stream
end

Public Instance Methods

close() click to toggle source
# File lib/dizby/stream/messenger.rb, line 25
def close
  @stream.close
end
closed?() click to toggle source
# File lib/dizby/stream/messenger.rb, line 29
def closed?
  !@stream || @stream.closed?
end