summaryrefslogtreecommitdiff
path: root/NET/worlds/network/RoomServer.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/network/RoomServer.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/network/RoomServer.java')
-rw-r--r--NET/worlds/network/RoomServer.java248
1 files changed, 248 insertions, 0 deletions
diff --git a/NET/worlds/network/RoomServer.java b/NET/worlds/network/RoomServer.java
new file mode 100644
index 0000000..b79ecb1
--- /dev/null
+++ b/NET/worlds/network/RoomServer.java
@@ -0,0 +1,248 @@
+/* */ package NET.worlds.network;
+/* */
+/* */ import NET.worlds.core.IniFile;
+/* */ import java.io.PrintStream;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ public class RoomServer
+/* */ extends AnonRoomServer
+/* */ {
+/* */ public synchronized void incRefCnt(Object referrer)
+/* */ {
+/* 105 */ super.incRefCnt(referrer);
+/* 106 */ startConnect();
+/* */ }
+/* */
+/* */ protected void state_Authprompt()
+/* */ {
+/* 111 */ this._state.setState(3);
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ protected sessionInitCmd buildSessionInitCmd()
+/* */ {
+/* 129 */ OldPropertyList props = new OldPropertyList();
+/* 130 */ String username = null;
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* 137 */ props.addProperty(new netProperty(3,
+/* 138 */ String.valueOf(getVersion())));
+/* 139 */ props.addProperty(new netProperty(9,
+/* 140 */ String.valueOf(this._clientVersion)));
+/* */
+/* 142 */ this._firstLogon = this._galaxy.addPendingServer(this);
+/* */
+/* 144 */ if (this._firstLogon)
+/* */ {
+/* */
+/* 147 */ return null;
+/* */ }
+/* */
+/* */
+/* 151 */ int avatars = IniFile.gamma().getIniInt("avatars", 24);
+/* 152 */ props.addProperty(new netProperty(7,
+/* 153 */ Integer.toString(avatars)));
+/* */
+/* */
+/* 156 */ assert (this._galaxy.getChatname() != null);
+/* 157 */ username = this._galaxy.getChatname();
+/* */
+/* */
+/* */
+/* 161 */ regShortID(1, username);
+/* */
+/* 163 */ props.addProperty(new netProperty(2, username));
+/* */
+/* 165 */ if ((this._galaxy.getLoginMode() != 3) &&
+/* 166 */ (this._galaxy.getPassword() != null)) {
+/* 167 */ props.addProperty(new netProperty(6, this._galaxy
+/* 168 */ .getPassword()));
+/* */ }
+/* */
+/* 171 */ if ((getDebugLevel() & 0x4) > 0) {
+/* 172 */ synchronized (System.out) {
+/* 173 */ System.out.println(this._serverURL.getHost() +
+/* 174 */ ": sending sessionInit.");
+/* 175 */ assert (username != null);
+/* 176 */ System.out.println(" username = \"" + username + "\"");
+/* 177 */ if (this._galaxy.getPassword() != null) {
+/* 178 */ System.out.println(" password = \"" +
+/* 179 */ this._galaxy.getPassword() + "\"");
+/* */ }
+/* */ }
+/* */ }
+/* 183 */ return new sessionInitCmd(props);
+/* */ }
+/* */
+/* */ protected void state_Sleeping(int timeNow)
+/* */ {
+/* 188 */ if (getGalaxy().isActive())
+/* */ {
+/* */
+/* 191 */ super.state_Sleeping(timeNow);
+/* */ }
+/* */ else {
+/* 194 */ this._state.setState(0);
+/* */ }
+/* */ }
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */
+/* */ void goOnline()
+/* */ {
+/* 240 */ this._requestOffline = false;
+/* */ }
+/* */ }
+
+
+/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\network\RoomServer.class
+ * Java compiler version: 6 (50.0)
+ * JD-Core Version: 0.7.1
+ */ \ No newline at end of file