class DRb::DRbServer
def initialize(uri=nil, front=nil, config_or_acl=nil)
this will become the primary server.
If no other server is currently set as the primary server,
See the :tcp_acl option for more details.
assumed to be the access control list for this server.
If +config_or_acl+ is not a hash, but is not nil, it is
and #verbose=
#default_load_limit, #default_acl, #default_id_conv,
a class-wide basis by the class methods #default_argc_limit,
The default values of these options can be modified on
256.
method accepted by the server. Defaults to
:argc_limit :: the maximum number of arguments to a remote
the server. Defaults to 25 MB (26214400).
:load_limit :: the maximum message size in bytes accepted by
the ACL class from the main dRuby distribution.
:tcp_acl :: the access control list for this server. See
by default.
in the server will be logged to $stdout. false
:verbose :: if true, all unsuccessful remote calls on objects
to an instance of the class DRb::DRbIdConv.
:idconv :: an id-to-object conversion object. This defaults
use for this server. The following options are recognised:
If +config_or_acl+ is a hash, it is the configuration to
nil, then the server will not accept remote method calls.
to which remote method calls on the server will be passed. If
+front+ is the front object for the server, that is, the object
as 'drbunix:', can be specified instead.
the default dRuby transport protocol: another protocol, such
can be retrieved from the +uri+ attribute. 'druby:' specifies
will be bound to, on a port selected by the system; these value
the local machine. If nil, then the system's default hostname
'druby://
+uri+ is the URI to bind to. This is normally of the form
Create a new DRbServer instance.
def initialize(uri=nil, front=nil, config_or_acl=nil) if Hash === config_or_acl config = config_or_acl.dup else acl = config_or_acl || @@acl config = { :tcp_acl => acl } end @config = self.class.make_config(config) @protocol = DRbProtocol.open_server(uri, @config) @uri = @protocol.uri @exported_uri = [@uri] @front = front @idconv = @config[:idconv] @grp = ThreadGroup.new @thread = run DRb.regist_server(self) end