Home Help Center

Adapter Reactivation

Hello,

I've got a question regarding to object adapters. I've read in the manual that it isn't possible to reactivate an deactivated object adapter. Are there any reasons for this limitation?

Thanks in advance.

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Why would you want to reactivate an adatper? You can put it on hold if you want to stop receiving requests temporarily.

    When an adapter is deactivated, a lot of stuff is cleaned up internally. It would be very complex to allow re-activation. It's easier to create a new adapter in such case.
  • Mr.FreezeMr.Freeze Member
    I create an adapter for every client and associate the adapter name with a port number. If a client disconnects from the server the adapter is deactivated. Another client connects and should get the freed port number. In my program the name of the adapter is the same as before, but the problem is that I can't activate a former deactivated adapter.
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Hmm... why do you want to do this? Having an adapter-per-client seems like a rather odd design choice to me. It's for sure a lot of overhead.
Sign In or Register to comment.