- After initializing CT Access, create the event queues and CTA contexts.
- Create one or more event queues by calling ctaCreateQueue. You specify which service managers will be attached to each queue. The Switching service's service manager is SWIMGR. When you attach or bind a service manager to a queue, you make that service manager available to the queue.
- Create a CTA context by calling ctaCreateContext. You provide the queue handle (ctaqueuehd) that was returned from ctaCreateQueue. All events for services on the CTA context will be received in the specified event queue.
- ctaCreateContext returns a CTA context handle (ctahd). The CTA context handle is supplied by the application when invoking swiOpenSwitch
.
- Refer to the CT Access Developer's Reference Manual for details on the programming models created by the use of CTA contexts and queues.