How to build a jabber client using libstrophe
问题 I'm trying to make a simple Jabber client using the libstrophe library. It's going fairly well so far, except for one thing for which I need some clarification. Namely, how am I supposed to (continuously) know the status (i.e., Online/Offline) of contacts, so that I can display it to the user of my program? Similarly, how am I supposed to request the roster of the user? I've looked at the roster.c example provided by libstrophe, but that only prints out the roster once. In a real application,