How to manage chat groups from my own app

I’m a new comer.

Now I have my TCP server using C++, how I can access the openfire server to manage the user chat groups.

Am I need to dev a plugin or something else?

I’m still not quite understand how to use openfire.

And I want to use my own database to manage user’s auth, so I found a doc herehttp://www.igniterealtime.org/builds/openfire/docs/latest/documentation/db-integ ration-guide.html

I followed the steps, but not succeeded. So now I need to know how to manage user’s information from my server…

Any one could help me…thx…