[Win32utils-devel] win32-mmap committed
win32utils-devel at rubyforge.org
win32utils-devel at rubyforge.org
Wed Feb 25 16:07:47 EST 2004
Hi all,
I have committed win32-mmap package.
It is similar to mmap or shared memory of unix
Basically, it can be used for variable sharing like this
In server side
==================================
m = Mmap.new
a = 1
m.setvar("a",a)
===================================
In client side
==================================
m = Mmap.new('reuse'=>true)
a = m.getvar("a")
===================================
It can be more compact like this
In server side
==================================
class Mmap
attr_accessor :t1
end
m = Mmap.new
m.t1 = 1
===================================
In client side
==================================
class Mmap
attr_accessor :t1
end
m = Mmap.new('reuse'=>true)
p m.t1
===================================
Test and Modify at your own risk :)
Regards,
Park Heesob
--MIME Multi-part separator--
More information about the win32utils-devel
mailing list