IMTA Management API

This API puts together a set of miscellaneous routines mainly used to support programmers using other APIs within the SDK.

Initializing the IMTA

Prior to calling any function in the Message enqueue and dequeue APIs, programs must initialize the IMTA by calling imta_init. This call causes the IMTA to allocate internal datastructures that the program will use through later calls.

It also defines the channel to be processed by the program. That is, the channel from which messages are being dequeued or enqueued. Note that a channel program can process mail out ot into one channel at most at a given time.

Before exiting the program, the memory allocated by imta_init must be freed by calling imta_end.

These two functions should, in general, be called once during the life of a program.


Accessing Channel Counters

Channel counters can be queried by programs using the Sun Internet Mail SDK. For more information on what channel counters are, please refer to the SIMS reference Manual.

imctr_get can be called to retrieve counters related to a given channel specification.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.