|
List Info
Thread: lm_connection_open_and_block() fails everytime??
|
|
| lm_connection_open_and_block() fails
everytime?? |

|
2007-11-06 00:56:40 |
|
Hi, Ive tried getting this to work with 1.3.1 and 1.3.2 and for some reason, even using different jabber servers, lm_connection_open_and_block() fails with 'Opening the connection failed';.
The same code has worked in the past without a problem, but I havent touched it for a month or so, but cant
imagine that it changed much. Here is the code below:
--------------------------------------------------------- GError *error = NULL; LmMessage *m; LmMessageHandler *handler; GMainLoop *main_loop;
char *server = "jabber.org"; conn = lm_connection_new(server); //lm_connection_set_port(conn, 5222); lm_connection_set_jid(conn, " username jabber.org">
username jabber.org"); //lm_connection_set_keep_alive_rate(conn,1); if(!lm_connection_open_and_block(conn, &error)) { g_print("Couldn't open connection to '%s9;:n%sn", server, error->message);
return NULL; } -----------------------------------------------------------
Any help would be much appreciated.
Thanks,
mm_202.
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|