rsc: please read the commit message for my neverending descent into madness
how do i stop making castles every time i go to the beach i make a castle every time i open blender i model castles every time i play chess i castle i just cant stop making castles dude
This commit is contained in:
@@ -12,302 +12,303 @@ import net.runelite.mapping.ObfuscatedSignature;
|
||||
@ObfuscatedName("fr")
|
||||
@Implements("NetSocket")
|
||||
public final class NetSocket extends AbstractSocket implements Runnable {
|
||||
@ObfuscatedName("fy")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfl;"
|
||||
)
|
||||
@Export("socketTask")
|
||||
static Task socketTask;
|
||||
@ObfuscatedName("n")
|
||||
@Export("inputStream")
|
||||
InputStream inputStream;
|
||||
@ObfuscatedName("v")
|
||||
@Export("outputStream")
|
||||
OutputStream outputStream;
|
||||
@ObfuscatedName("d")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("c")
|
||||
@Export("isClosed")
|
||||
boolean isClosed = false;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfu;"
|
||||
)
|
||||
@Export("taskHandler")
|
||||
TaskHandler taskHandler;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfl;"
|
||||
)
|
||||
@Export("task")
|
||||
Task task;
|
||||
@ObfuscatedName("z")
|
||||
@Export("outBuffer")
|
||||
byte[] outBuffer;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -80175503
|
||||
)
|
||||
@Export("outLength")
|
||||
int outLength = 0;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -502445773
|
||||
)
|
||||
@Export("outOffset")
|
||||
int outOffset = 0;
|
||||
@ObfuscatedName("l")
|
||||
@Export("exceptionWriting")
|
||||
boolean exceptionWriting = false;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1447892009
|
||||
)
|
||||
@Export("bufferLength")
|
||||
final int bufferLength;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1889811971
|
||||
)
|
||||
@Export("maxPacketLength")
|
||||
final int maxPacketLength;
|
||||
@ObfuscatedName("fy")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfl;"
|
||||
)
|
||||
@Export("socketTask")
|
||||
static Task socketTask;
|
||||
@ObfuscatedName("n")
|
||||
@Export("inputStream")
|
||||
InputStream inputStream;
|
||||
@ObfuscatedName("v")
|
||||
@Export("outputStream")
|
||||
OutputStream outputStream;
|
||||
@ObfuscatedName("d")
|
||||
@Export("socket")
|
||||
Socket socket;
|
||||
@ObfuscatedName("c")
|
||||
@Export("isClosed")
|
||||
boolean isClosed;
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfu;"
|
||||
)
|
||||
@Export("taskHandler")
|
||||
TaskHandler taskHandler;
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lfl;"
|
||||
)
|
||||
@Export("task")
|
||||
Task task;
|
||||
@ObfuscatedName("z")
|
||||
@Export("outBuffer")
|
||||
byte[] outBuffer;
|
||||
@ObfuscatedName("e")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -80175503
|
||||
)
|
||||
@Export("outLength")
|
||||
int outLength;
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -502445773
|
||||
)
|
||||
@Export("outOffset")
|
||||
int outOffset;
|
||||
@ObfuscatedName("l")
|
||||
@Export("exceptionWriting")
|
||||
boolean exceptionWriting;
|
||||
@ObfuscatedName("s")
|
||||
@ObfuscatedGetter(
|
||||
intValue = 1447892009
|
||||
)
|
||||
@Export("bufferLength")
|
||||
final int bufferLength;
|
||||
@ObfuscatedName("b")
|
||||
@ObfuscatedGetter(
|
||||
intValue = -1889811971
|
||||
)
|
||||
@Export("maxPacketLength")
|
||||
final int maxPacketLength;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/net/Socket;Lfu;I)V"
|
||||
)
|
||||
public NetSocket(Socket var1, TaskHandler var2, int var3) throws IOException {
|
||||
this.taskHandler = var2;
|
||||
this.socket = var1;
|
||||
this.bufferLength = var3;
|
||||
this.maxPacketLength = var3 - 100;
|
||||
this.socket.setSoTimeout(30000);
|
||||
this.socket.setTcpNoDelay(true);
|
||||
this.socket.setReceiveBufferSize(65536);
|
||||
this.socket.setSendBufferSize(65536);
|
||||
this.inputStream = this.socket.getInputStream();
|
||||
this.outputStream = this.socket.getOutputStream();
|
||||
}
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Ljava/net/Socket;Lfu;I)V"
|
||||
)
|
||||
public NetSocket(Socket var1, TaskHandler var2, int var3) throws IOException {
|
||||
this.isClosed = false; // L: 16
|
||||
this.outLength = 0; // L: 20
|
||||
this.outOffset = 0; // L: 21
|
||||
this.exceptionWriting = false; // L: 22
|
||||
this.taskHandler = var2; // L: 28
|
||||
this.socket = var1; // L: 29
|
||||
this.bufferLength = var3; // L: 30
|
||||
this.maxPacketLength = var3 - 100; // L: 31
|
||||
this.socket.setSoTimeout(30000); // L: 32
|
||||
this.socket.setTcpNoDelay(true); // L: 33
|
||||
this.socket.setReceiveBufferSize(65536); // L: 34
|
||||
this.socket.setSendBufferSize(65536); // L: 35
|
||||
this.inputStream = this.socket.getInputStream(); // L: 36
|
||||
this.outputStream = this.socket.getOutputStream(); // L: 37
|
||||
} // L: 38
|
||||
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "136255387"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
if (!this.isClosed) {
|
||||
synchronized(this) {
|
||||
this.isClosed = true;
|
||||
this.notifyAll();
|
||||
}
|
||||
@ObfuscatedName("n")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(I)V",
|
||||
garbageValue = "136255387"
|
||||
)
|
||||
@Export("close")
|
||||
public void close() {
|
||||
if (!this.isClosed) { // L: 41
|
||||
synchronized(this) { // L: 42
|
||||
this.isClosed = true; // L: 43
|
||||
this.notifyAll(); // L: 44
|
||||
} // L: 45
|
||||
|
||||
if (this.task != null) {
|
||||
while(this.task.status == 0) {
|
||||
ApproximateRouteStrategy.sleepExact(1L);
|
||||
}
|
||||
if (this.task != null) { // L: 46
|
||||
while (this.task.status == 0) { // L: 47
|
||||
ApproximateRouteStrategy.sleepExact(1L); // L: 48
|
||||
}
|
||||
|
||||
if (this.task.status == 1) {
|
||||
try {
|
||||
((Thread)this.task.result).join();
|
||||
} catch (InterruptedException var3) {
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.task.status == 1) { // L: 50
|
||||
try {
|
||||
((Thread)this.task.result).join(); // L: 52
|
||||
} catch (InterruptedException var3) { // L: 54
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.task = null;
|
||||
}
|
||||
}
|
||||
this.task = null; // L: 57
|
||||
}
|
||||
} // L: 58
|
||||
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "-29"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.read();
|
||||
}
|
||||
@ObfuscatedName("v")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "-29"
|
||||
)
|
||||
@Export("readUnsignedByte")
|
||||
public int readUnsignedByte() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.read(); // L: 65 66
|
||||
}
|
||||
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.available();
|
||||
}
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(B)I",
|
||||
garbageValue = "1"
|
||||
)
|
||||
@Export("available")
|
||||
public int available() throws IOException {
|
||||
return this.isClosed ? 0 : this.inputStream.available(); // L: 70 71
|
||||
}
|
||||
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)Z",
|
||||
garbageValue = "1621767276"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
if (this.isClosed) {
|
||||
return false;
|
||||
} else {
|
||||
return this.inputStream.available() >= var1;
|
||||
}
|
||||
}
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(II)Z",
|
||||
garbageValue = "1621767276"
|
||||
)
|
||||
@Export("isAvailable")
|
||||
public boolean isAvailable(int var1) throws IOException {
|
||||
if (this.isClosed) { // L: 75
|
||||
return false;
|
||||
} else {
|
||||
return this.inputStream.available() >= var1; // L: 76
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIIB)I",
|
||||
garbageValue = "-127"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
if (this.isClosed) {
|
||||
return 0;
|
||||
} else {
|
||||
int var4;
|
||||
int var5;
|
||||
for(var4 = var3; var3 > 0; var3 -= var5) {
|
||||
var5 = this.inputStream.read(var1, var2, var3);
|
||||
if (var5 <= 0) {
|
||||
throw new EOFException();
|
||||
}
|
||||
@ObfuscatedName("y")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIIB)I",
|
||||
garbageValue = "-127"
|
||||
)
|
||||
@Export("read")
|
||||
public int read(byte[] var1, int var2, int var3) throws IOException {
|
||||
if (this.isClosed) { // L: 80
|
||||
return 0;
|
||||
} else {
|
||||
int var4;
|
||||
int var5;
|
||||
for (var4 = var3; var3 > 0; var3 -= var5) { // L: 81 82 86
|
||||
var5 = this.inputStream.read(var1, var2, var3); // L: 83
|
||||
if (var5 <= 0) { // L: 84
|
||||
throw new EOFException();
|
||||
}
|
||||
|
||||
var2 += var5;
|
||||
}
|
||||
var2 += var5; // L: 85
|
||||
}
|
||||
|
||||
return var4;
|
||||
}
|
||||
}
|
||||
return var4; // L: 88
|
||||
}
|
||||
}
|
||||
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "-2045267371"
|
||||
)
|
||||
@Export("write0")
|
||||
void write0(byte[] var1, int var2, int var3) throws IOException {
|
||||
if (!this.isClosed) {
|
||||
if (this.exceptionWriting) {
|
||||
this.exceptionWriting = false;
|
||||
throw new IOException();
|
||||
} else {
|
||||
if (this.outBuffer == null) {
|
||||
this.outBuffer = new byte[this.bufferLength];
|
||||
}
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "-2045267371"
|
||||
)
|
||||
@Export("write0")
|
||||
void write0(byte[] var1, int var2, int var3) throws IOException {
|
||||
if (!this.isClosed) { // L: 92
|
||||
if (this.exceptionWriting) { // L: 93
|
||||
this.exceptionWriting = false; // L: 94
|
||||
throw new IOException(); // L: 95
|
||||
} else {
|
||||
if (this.outBuffer == null) { // L: 97
|
||||
this.outBuffer = new byte[this.bufferLength];
|
||||
}
|
||||
|
||||
synchronized(this) {
|
||||
for(int var5 = 0; var5 < var3; ++var5) {
|
||||
this.outBuffer[this.outOffset] = var1[var5 + var2];
|
||||
this.outOffset = (this.outOffset + 1) % this.bufferLength;
|
||||
if ((this.maxPacketLength + this.outLength) % this.bufferLength == this.outOffset) {
|
||||
throw new IOException();
|
||||
}
|
||||
}
|
||||
synchronized(this) { // L: 98
|
||||
for (int var5 = 0; var5 < var3; ++var5) { // L: 99
|
||||
this.outBuffer[this.outOffset] = var1[var5 + var2]; // L: 100
|
||||
this.outOffset = (this.outOffset + 1) % this.bufferLength; // L: 101
|
||||
if ((this.maxPacketLength + this.outLength) % this.bufferLength == this.outOffset) { // L: 102
|
||||
throw new IOException(); // L: 103
|
||||
}
|
||||
}
|
||||
|
||||
if (this.task == null) {
|
||||
this.task = this.taskHandler.newThreadTask(this, 3);
|
||||
}
|
||||
if (this.task == null) { // L: 106
|
||||
this.task = this.taskHandler.newThreadTask(this, 3); // L: 107
|
||||
}
|
||||
|
||||
this.notifyAll();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.notifyAll(); // L: 109
|
||||
}
|
||||
}
|
||||
}
|
||||
} // L: 111
|
||||
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "1032488862"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
this.write0(var1, var2, var3);
|
||||
}
|
||||
@ObfuscatedName("z")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "([BIII)V",
|
||||
garbageValue = "1032488862"
|
||||
)
|
||||
@Export("write")
|
||||
public void write(byte[] var1, int var2, int var3) throws IOException {
|
||||
this.write0(var1, var2, var3); // L: 160
|
||||
} // L: 161
|
||||
|
||||
protected void finalize() {
|
||||
this.close();
|
||||
}
|
||||
protected void finalize() {
|
||||
this.close(); // L: 61
|
||||
} // L: 62
|
||||
|
||||
public void run() {
|
||||
try {
|
||||
while(true) {
|
||||
label84: {
|
||||
int var1;
|
||||
int var2;
|
||||
synchronized(this) {
|
||||
if (this.outOffset == this.outLength) {
|
||||
if (this.isClosed) {
|
||||
break label84;
|
||||
}
|
||||
public void run() {
|
||||
try {
|
||||
while (true) {
|
||||
label84: {
|
||||
int var1;
|
||||
int var2;
|
||||
synchronized(this) { // L: 118
|
||||
if (this.outOffset == this.outLength) { // L: 119
|
||||
if (this.isClosed) { // L: 120
|
||||
break label84;
|
||||
}
|
||||
|
||||
try {
|
||||
this.wait();
|
||||
} catch (InterruptedException var10) {
|
||||
;
|
||||
}
|
||||
}
|
||||
try {
|
||||
this.wait(); // L: 122
|
||||
} catch (InterruptedException var10) { // L: 124
|
||||
}
|
||||
}
|
||||
|
||||
var2 = this.outLength;
|
||||
if (this.outOffset >= this.outLength) {
|
||||
var1 = this.outOffset - this.outLength;
|
||||
} else {
|
||||
var1 = this.bufferLength - this.outLength;
|
||||
}
|
||||
}
|
||||
var2 = this.outLength; // L: 126
|
||||
if (this.outOffset >= this.outLength) { // L: 127
|
||||
var1 = this.outOffset - this.outLength;
|
||||
} else {
|
||||
var1 = this.bufferLength - this.outLength; // L: 128
|
||||
}
|
||||
}
|
||||
|
||||
if (var1 <= 0) {
|
||||
continue;
|
||||
}
|
||||
if (var1 <= 0) { // L: 130
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
this.outputStream.write(this.outBuffer, var2, var1);
|
||||
} catch (IOException var9) {
|
||||
this.exceptionWriting = true;
|
||||
}
|
||||
try {
|
||||
this.outputStream.write(this.outBuffer, var2, var1); // L: 132
|
||||
} catch (IOException var9) { // L: 134
|
||||
this.exceptionWriting = true; // L: 135
|
||||
}
|
||||
|
||||
this.outLength = (var1 + this.outLength) % this.bufferLength;
|
||||
this.outLength = (var1 + this.outLength) % this.bufferLength; // L: 137
|
||||
|
||||
try {
|
||||
if (this.outLength == this.outOffset) {
|
||||
this.outputStream.flush();
|
||||
}
|
||||
} catch (IOException var8) {
|
||||
this.exceptionWriting = true;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
if (this.outLength == this.outOffset) { // L: 139
|
||||
this.outputStream.flush();
|
||||
}
|
||||
} catch (IOException var8) { // L: 141
|
||||
this.exceptionWriting = true; // L: 142
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
if (this.inputStream != null) {
|
||||
this.inputStream.close();
|
||||
}
|
||||
try {
|
||||
if (this.inputStream != null) { // L: 147
|
||||
this.inputStream.close();
|
||||
}
|
||||
|
||||
if (this.outputStream != null) {
|
||||
this.outputStream.close();
|
||||
}
|
||||
if (this.outputStream != null) { // L: 148
|
||||
this.outputStream.close();
|
||||
}
|
||||
|
||||
if (this.socket != null) {
|
||||
this.socket.close();
|
||||
}
|
||||
} catch (IOException var7) {
|
||||
;
|
||||
}
|
||||
if (this.socket != null) { // L: 149
|
||||
this.socket.close();
|
||||
}
|
||||
} catch (IOException var7) { // L: 151
|
||||
}
|
||||
|
||||
this.outBuffer = null;
|
||||
break;
|
||||
}
|
||||
} catch (Exception var12) {
|
||||
SequenceDefinition.RunException_sendStackTrace((String)null, var12);
|
||||
}
|
||||
this.outBuffer = null; // L: 152
|
||||
break;
|
||||
}
|
||||
} catch (Exception var12) { // L: 154
|
||||
SequenceDefinition.RunException_sendStackTrace((String)null, var12); // L: 155
|
||||
}
|
||||
|
||||
}
|
||||
} // L: 157
|
||||
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(S)V",
|
||||
garbageValue = "-3619"
|
||||
)
|
||||
static final void method3748() {
|
||||
class300.method5473("You can't add yourself to your own ignore list");
|
||||
}
|
||||
@ObfuscatedName("w")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(S)V",
|
||||
garbageValue = "-3619"
|
||||
)
|
||||
static final void method3748() {
|
||||
class300.method5473("You can't add yourself to your own ignore list"); // L: 162
|
||||
} // L: 163
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user