class Rserve::Session
Constants
- UID
Attributes
attach_packet[R]
host[R]
key[R]
port[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