GRAYBYTE WORDPRESS FILE MANAGER4071

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/ruby20/lib64/ruby/2.0.0/drb/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/ruby20/lib64/ruby/2.0.0/drb//extserv.rb
=begin
 external service
        Copyright (c) 2000,2002 Masatoshi SEKI
=end

require 'drb/drb'
require 'monitor'

module DRb
  class ExtServ
    include MonitorMixin
    include DRbUndumped

    def initialize(there, name, server=nil)
      super()
      @server = server || DRb::primary_server
      @name = name
      ro = DRbObject.new(nil, there)
      synchronize do
        @invoker = ro.regist(name, DRbObject.new(self, @server.uri))
      end
    end
    attr_reader :server

    def front
      DRbObject.new(nil, @server.uri)
    end

    def stop_service
      synchronize do
        @invoker.unregist(@name)
        server = @server
        @server = nil
        server.stop_service
        true
      end
    end

    def alive?
      @server ? @server.alive? : false
    end
  end
end

# :stopdoc:

if __FILE__ == $0
  class Foo
    include DRbUndumped

    def initialize(str)
      @str = str
    end

    def hello(it)
      "#{it}: #{self}"
    end

    def to_s
      @str
    end
  end

  cmd = ARGV.shift
  case cmd
  when 'itest1', 'itest2'
    front = Foo.new(cmd)
    manager = DRb::DRbServer.new(nil, front)
    es = DRb::ExtServ.new(ARGV.shift, ARGV.shift, manager)
    es.server.thread.join
  end
end


[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:53:08
root / root
0755
acl.rb
4.65 KB
May 19 2011 00:07:25
root / linksafe
0644
drb.rb
55.393 KB
January 26 2013 03:58:33
root / linksafe
0644
eq.rb
0.238 KB
January 25 2013 03:25:39
root / linksafe
0644
extserv.rb
1.201 KB
January 25 2013 03:25:39
root / linksafe
0644
extservm.rb
1.71 KB
April 22 2012 11:35:03
root / linksafe
0644
gw.rb
2.97 KB
January 25 2013 03:25:39
root / linksafe
0644
invokemethod.rb
0.729 KB
January 25 2013 03:25:39
root / linksafe
0644
observer.rb
0.621 KB
January 25 2013 03:25:39
root / linksafe
0644
ssl.rb
11.505 KB
December 24 2013 15:37:51
root / linksafe
0644
timeridconv.rb
2.111 KB
January 25 2013 03:25:39
root / linksafe
0644
unix.rb
2.719 KB
January 25 2013 03:25:39
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF