Re: Client may not start server twice

From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 11/09/04

  • Next message: Alexander Nickolov: "Re: Using COM for interprocess communication?"
    Date: Tue, 9 Nov 2004 09:53:46 -0800
    
    

    For the first question - use REGCLS_SINGLEUSE when you
    register your class objects - COM will start a fresh server
    process for each new client. Only works for out-of-proc
    servers of course. REGCLS_MULTIPLEUSE does the opposite -
    a single process serves all clients.

    For the latter - modify the registration code of your out-of-proc
    server not to register the LocalServer32 value. Then COM won't
    be able to start your server, but clients can still conect to it when
    it's running and its class objects are registered. Note you should
    use REGCLS_MUTLIPLEUSE in that case - to allow multiple
    client connections.

    -- 
    =====================================
    Alexander Nickolov
    Microsoft MVP [VC], MCSD
    email: agnickolov@mvps.org
    MVP VC FAQ: http://www.mvps.org/vcfaq
    =====================================
    "Peter" <Peter@discussions.microsoft.com> wrote in message 
    news:D74813E0-49CA-42FE-B44E-B2DE91FEA173@microsoft.com...
    > Hello,
    >
    > I am running a server client application on a W2k PC or at two PCs.
    >
    > Does someone know how to configure a server that it can be started only 
    > once
    > by a client ??  Or that a client can start a new server instance with each
    > call.
    >
    > Or how to configure a server that the client can connect to a server
    > interface only if the server is already running and that the client has no
    > permission to start the server at all??
    >
    > Thank's for any tip
    >
    > Peter 
    

  • Next message: Alexander Nickolov: "Re: Using COM for interprocess communication?"

    Relevant Pages

    • Re: What doesnt lend itself to OO?
      ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
      (comp.object)
    • This is going straight to the pool room
      ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
      (comp.os.vms)
    • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
      ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
      (Full-Disclosure)
    • Re: Accessing secure and unsecure services from same app domain
      ... The server has 2 channels ... There's one secure server and client, ... the first channel I register is always used. ...
      (microsoft.public.dotnet.framework.remoting)
    • Re: What doesnt lend itself to OO?
      ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
      (comp.object)