Archived

This forum has been archived. Please start a new discussion on GitHub.

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

  • marc
    marc Florida
    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.
  • 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.
  • marc
    marc Florida
    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.