Functions | |
irc_session_t * | irc_create_session (irc_callbacks_t *callbacks) |
Creates and initiates a new IRC session. | |
void | irc_destroy_session (irc_session_t *session) |
Destroys previously created IRC session. |
irc_session_t * irc_create_session | ( | irc_callbacks_t * | callbacks | ) |
Creates and initiates a new IRC session.
callbacks | A structure, which defines several callbacks, which will be called on appropriate events. Must not be NULL. |
Every session created must be destroyed when it is not needed anymore by calling irc_destroy_session().
The most common function sequence is:
... prepare irc_callbacks_t structure ... irc_create_session(); irc_connect(); irc_run(); irc_destroy_session();
void irc_destroy_session | ( | irc_session_t * | session | ) |
Destroys previously created IRC session.
session | A session to destroy. Must not be NULL. |