📄 smgpconfig.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: SMGPConfig.java
package com.SMGP13.config;
import com.log.CTime;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.util.Properties;
import javax.swing.JTextArea;
public class SMGPConfig
{
public static int ActiveTestTimeout;
public static int MTQueueMaxSize;
public static int ReConnectTime;
public static int ReSendTimeout;
public static int ReSendTimes;
public static int SlideWindowLength;
public static String _ClientID;
public static String _LoginSecret;
public static int _Port;
public static String _ServerIP;
public static int _Version;
public static SMGPConfig _instance;
public SMGPConfig()
{
}
public String getClient()
{
SMGPConfig _tmp = this;
return _ClientID;
}
public boolean getConfig(JTextArea sa)
{
Properties profile = new Properties();
profile.load(new BufferedInputStream(new FileInputStream("./config/smgp.conf")));
this;
_ClientID = profile.getProperty("ClientID");
this;
_ServerIP = profile.getProperty("ServerIP");
this;
_LoginSecret = profile.getProperty("LoginSecret");
this;
_Version = Integer.parseInt(profile.getProperty("Version"));
this;
_Port = Integer.parseInt(profile.getProperty("Port"));
this;
MTQueueMaxSize = Integer.parseInt(profile.getProperty("MTQueueMaxSize"));
this;
ReSendTimes = Integer.parseInt(profile.getProperty("ReSendTimes"));
this;
ReSendTimeout = Integer.parseInt(profile.getProperty("ReSendTimeout"));
this;
ActiveTestTimeout = Integer.parseInt(profile.getProperty("ActiveTestTimeout"));
this;
SlideWindowLength = Integer.parseInt(profile.getProperty("SlideWindowLength"));
this;
ReConnectTime = Integer.parseInt(profile.getProperty("ReConnectTime"));
break MISSING_BLOCK_LABEL_205;
Exception e;
e;
sa.append(CTime.getStringDate() + " SMGP13配置文件错误,SMGP13模块将不启动!\n\n");
return false;
return true;
}
public static SMGPConfig getInstance()
{
if(_instance == null)
_instance = new SMGPConfig();
return _instance;
}
public byte[] getLoginSecret()
{
SMGPConfig _tmp = this;
return _LoginSecret.getBytes();
}
public int getMTQueueMaxSize()
{
return MTQueueMaxSize;
}
public int getPort()
{
SMGPConfig _tmp = this;
return _Port;
}
public String getServerIP()
{
SMGPConfig _tmp = this;
return _ServerIP;
}
public int getVersion()
{
SMGPConfig _tmp = this;
return _Version;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -