Author: remi
Date: 2008-09-17 14:57:36 +0200 (Wed, 17 Sep 2008)
New Revision: 1871
Modified:
software_suite_v2/tuxware/java-api/trunk/src/com/tuxisalive/api/TuxAPIServer.java
Log:
* activated the anonymous level for tux.server.connect
* record the client level when you attempt to connect to the http server
Modified:
software_suite_v2/tuxware/java-api/trunk/src/com/tuxisalive/api/TuxAPIServer.java
===================================================================
---
software_suite_v2/tuxware/java-api/trunk/src/com/tuxisalive/api/TuxAPIServer.java
2008-09-17 12:37:06 UTC (rev 1870)
+++
software_suite_v2/tuxware/java-api/trunk/src/com/tuxisalive/api/TuxAPIServer.java
2008-09-17 12:57:36 UTC (rev 1871)
@@ -417,6 +417,14 @@
{
return false;
}
+ clientLevel = level;
+ // If client level is ANONYME - Success
+ if (level == TuxAPIConst.CLIENT_LEVEL_ANONYME)
+ {
+ cmdUrl = "0/";
+ setCmdUrl(cmdUrl);
+ setConnected(true);
+ }
// Make command
String cmd =
String.format("client/create?level=%d&name=%s&passwd=%s",
level, name, passwd);
@@ -512,6 +520,7 @@
autoConnectionThread = new SThread((Object)this,
"autoConnectionLoop", level,
name, passwd);
autoConnectionThread.start();
+ clientLevel = level;
}
/*
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn