Re: Problem connecting to jabber server

Duncan Berriman <[email protected]>
Newsgroups gmane.comp.gnome.gaim.devel
Message-ID <CAADBMyUWbnRgqsEhPesGiQuscVBnzvH7f2YT37ZK5Tz3osJZDQ@mail.gmail.com>
I have a similar program and the only difference I can see is I have a

purple_accounts_add(account);

before

purple_account_set_enabled;

If and when I have to reconnect I do

purple_account_set_password(account, password);
purple_account_connect(account);

Regards
Duncan

On Sat, Sep 24, 2016 at 9:51 AM, Luca Bertoncello <[email protected]>
wrote:

> Hi list!
>
> I wrote a little program using libpurple to send messages from programs.
> It works very good with ICQ, but now I need to use Jabber, too...
>
> Unfortunately I cannot connect to my Jabber-server...
> In the logs of prosody I can just see:
>
> Sep 24 10:49:31 c2s1de6560      info    Client connected
>
> But no authentication...
>
> Here my code:
>
>   account = purple_account_new(cfg.login, "prpl-jabber");
>   purple_account_set_password(account, cfg.password);
>   purple_account_set_string(account, "server", cfg.server);
>   purple_account_set_int(account, "port", cfg.port);
>   purple_account_set_bool(account, "require_tls", TRUE);
>   purple_account_set_bool(account, "auth_plain_in_clear", TRUE);
>   purple_account_set_enabled(account, UI_ID, TRUE);
>   status = purple_savedstatus_new("ONLINE", PURPLE_STATUS_AVAILABLE);
>   purple_savedstatus_activate(status);
>
> what am I doing wrong?
>
> Thanks a lot!
> Luca Bertoncello
> ([email protected])
>
> _______________________________________________
> Devel mailing list
> [email protected]
> https://pidgin.im/cgi-bin/mailman/listinfo/devel
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>

_______________________________________________
Devel mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.