class CTI::ResourceOut

Public Instance Methods

close() click to toggle source
# File CTI/Session.rb, line 449
def close
  @io.req_eof
end
write(str) click to toggle source
# File CTI/Session.rb, line 442
def write(str)
  while str.bytesize > 0
    data = str.slice!(0, CTIP2::CTI_BUFFER_SIZE)
    @io.req_write(data)
  end
end

Public Class Methods

new(io) click to toggle source
# File CTI/Session.rb, line 438
def initialize(io)
  @io = io
end