J
Jun Young Kim
[Note: parts of this message were removed to make it a legal post.]
Hi. all
quick question
I received a drb object from an another process.
let me see an example.
sender class)
A class)
..
def return
ret = output.new(self)
...
ret
end
B class)
@@buffer
def buffer(buf)
@@buffer << buf
end
def send
DRb.start_service(nil, self)
....
DRb.stop_service
end
def wait_ret
@@buffer
end
receiver class)
DRb.start_service
..
tObj = DRbObject.new(nil, uri)
buffer = tObj.wait_ret
STDOUT.write buffer
DRb.stop_service
in this code,
when i write buffer in stdout, it is appeared by sequences of output
class.
but, when i puts buffer in stdout, it is appeared always by sequences
of DRb::unknown or DRb::Object.
I cannot call methods of buffer class(this is an instance of output
class).
could you give me hints to understand this situation?
Hi. all
quick question
I received a drb object from an another process.
let me see an example.
sender class)
A class)
..
def return
ret = output.new(self)
...
ret
end
B class)
@@buffer
def buffer(buf)
@@buffer << buf
end
def send
DRb.start_service(nil, self)
....
DRb.stop_service
end
def wait_ret
@@buffer
end
receiver class)
DRb.start_service
..
tObj = DRbObject.new(nil, uri)
buffer = tObj.wait_ret
STDOUT.write buffer
DRb.stop_service
in this code,
when i write buffer in stdout, it is appeared by sequences of output
class.
but, when i puts buffer in stdout, it is appeared always by sequences
of DRb::unknown or DRb::Object.
I cannot call methods of buffer class(this is an instance of output
class).
could you give me hints to understand this situation?