Parent

Methods

Included Modules

Rserve::Session

Constants

UID

Attributes

host[R]
port[R]
key[R]
attach_packet[R]
rsrv_version[R]

Public Class Methods

new(con,packet) click to toggle source
# File lib/rserve/session.rb, line 13
def initialize(con,packet)
  @host=con.hostname
  @rsrv_version=con.rsrv_version
  ct=packet.cont
  if ct.nil? or ct.length!=32+3*4
    raise "Invalid response to session detach request."
  end
  @port=get_int(ct,4)
  @key=ct[12,32]
end

Public Instance Methods

attach() click to toggle source
# File lib/rserve/session.rb, line 23
def attach
  c=Rserve::Connection.new(:session=>self)
  @attach_packet=c.rt.request(:cmd=>-1,:cont=>[])
  c
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.