+ if (! lm_connection_open (info->connection,
+ (LmResultFunction) connection_open_cb,
+ info, NULL, &error))
+ {
+ g_print ("Opening connection failed: %s\n", error->message);
+ loudgame_quit (info, 1);
+ }
+
+ /* Return false to not schedule another call. */
+ return 0;
+}
+
+int
+main (int argc, char **argv)
+{
+ UserInfo info;
+
+ if (argc != 4) {
+ g_print ("Usage: %s <server> <username> <password>\n", argv[0]);
+ return 1;
+ }
+
+ info.server = argv[1];