next up previous contents
Next: An ICQ session with Up: Detailed examination of the Previous: The ``active'' functions   Contents

The function icq_Main

This function which can be found in line 227 might look like a regular ``active'' function but in fact it has a very special role when writing an icqlib based ICQ client.

The icq_Main function takes as input the ICQLINK of a connection and checks in a non blocking manner if there is anything new to read from the network. If there is, this function calls all the relevant callback functions and then return.

This function is extremely useful because it releases the programmer from responsibility to the internal flow of control inside the icqlib component. In fact it is this function that enables the abstraction of an event-driven mechanism in icqlib.

Zvika Brakerski 2001-05-08