Accepting connections from migrated clients

Open Server can determine if a new connection is migrating or has migrated by inspecting the SRV_T_MIGRATED property in the SRV_CONNECT event handler. If SRV_T_MIGRATED is TRUE, you can retrieve the session ID from the client using the SRV_T_SESSIONID property. You can also change the session ID, but this is not required to migrate the client later.

If the client was executing a command when it migrated, the SRV_MIGRATE_RESUME event is triggered and Open Server can send results to the client to complete the command. Your application is responsible for retrieving the session information. You must also determine whether you still need to send results to the client from within the SRV_MIGRATE_RESUME event handler.