Help in : http://www.igniterealtime.org/builds/smack/docs/latest/documentation/
Is all information about connect, send, listeners, rosters etc...
U need make un server local or external
Local : http://www.igniterealtime.org/downloads/index.jsp
note(I don't know if exist api, but code is to easy, only 3 o 4 lines)