summaryrefslogtreecommitdiff
path: root/NET/worlds/network/AnonUserServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'NET/worlds/network/AnonUserServer.java')
-rw-r--r--NET/worlds/network/AnonUserServer.java143
1 files changed, 143 insertions, 0 deletions
diff --git a/NET/worlds/network/AnonUserServer.java b/NET/worlds/network/AnonUserServer.java
new file mode 100644
index 0000000..9448a04
--- /dev/null
+++ b/NET/worlds/network/AnonUserServer.java
@@ -0,0 +1,143 @@
+/* */ package NET.worlds.network;
+/* */
+/* */ import java.io.PrintStream;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class AnonUserServer
+/* */ extends WorldServer
+/* */ {
+/* */ protected sessionInitCmd buildSessionInitCmd()
+/* */ {
+/* 59 */ OldPropertyList props = new OldPropertyList();
+/* */
+/* */
+/* 62 */ props.addProperty(new netProperty(3,
+/* 63 */ String.valueOf(getVersion())));
+/* 64 */ props.addProperty(new netProperty(9,
+/* 65 */ String.valueOf(this._clientVersion)));
+/* */
+/* 67 */ this._firstLogon = this._galaxy.addPendingServer(this);
+/* 68 */ assert (this._firstLogon);
+/* */
+/* */
+/* 71 */ assert (this._galaxy.getPassword() == null);
+/* */
+/* */
+/* 74 */ assert (this._galaxy.getLoginMode() != 1);
+/* 75 */ assert (this._galaxy.getLoginMode() != 4);
+/* 76 */ assert (this._galaxy.getSerialNum() == null);
+/* */
+/* 78 */ switch (this._galaxy.getLoginMode()) {
+/* */ case 3:
+/* 80 */ assert (this._galaxy.getGuestExpiration() != null);
+/* 81 */ props.addProperty(new netProperty(14, this._galaxy
+/* 82 */ .getGuestExpiration()));
+/* 83 */ if (this._firstLogon)
+/* 84 */ props.addProperty(new netProperty(12, "1"));
+/* 85 */ break;
+/* */
+/* */
+/* */ case 2:
+/* 89 */ assert (this._galaxy.getChatname() != null);
+/* */
+/* */
+/* 92 */ regShortID(1, this._galaxy.getChatname());
+/* */
+/* 94 */ props.addProperty(new netProperty(2, this._galaxy
+/* 95 */ .getChatname()));
+/* 96 */ if (this._firstLogon)
+/* 97 */ props.addProperty(new netProperty(12, "1"));
+/* 98 */ break;
+/* */ default:
+/* 100 */ if (!$assertionsDisabled) { throw new AssertionError();
+/* */ }
+/* */ break;
+/* */ }
+/* */
+/* 105 */ if ((getDebugLevel() & 0x4) > 0) {
+/* 106 */ synchronized (System.out) {
+/* 107 */ System.out.println(this._serverURL.getHost() +
+/* 108 */ ": sending sessionInit.");
+/* 109 */ System.out.println(" username = \"" +
+/* 110 */ this._galaxy.getChatname() + "\"");
+/* 111 */ if (this._galaxy.getPassword() != null)
+/* 112 */ System.out.println(" password = " +
+/* 113 */ this._galaxy.getPassword());
+/* 114 */ if (this._galaxy.getLoginMode() == 3) {
+/* 115 */ System.out.println(" VAR_GUEST");
+/* */ }
+/* */ }
+/* */ }
+/* 119 */ return new sessionInitCmd(props);
+/* */ }
+/* */
+/* */ protected void state_XMIT_SI()
+/* */ {
+/* 124 */ if (this._requestOffline) {
+/* 125 */ this._state.setState(17);
+/* 126 */ return;
+/* */ }
+/* 128 */ sessionInitCmd SI = buildSessionInitCmd();
+/* */ try
+/* */ {
+/* 131 */ sendNetMsg(SI);
+/* */ } catch (PacketTooLargeException e) {
+/* 133 */ if (!$assertionsDisabled) throw new AssertionError();
+/* */ }
+/* 135 */ this._state.setState(8);
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\AnonUserServer.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file