hope fix error existing connection forcibly closed remote host established connection aborted software in host machine
try { while (this.remote) { if (!this.remote) break; this.lg_remote_recv_buffer.offset = 0; socketerror socketerror; this.lg_remote_recv_buffer.size = this.lg_remote_client.receive(this.lg_remote_recv_buffer.buffer, 0, this.lg_remote_recv_buffer.buffer.length, socketflags.none, out socketerror); if (socketerror != socketerror.success) { if (socketerror != socketerror.wouldblock) { this.cleanclient(); break; } } else { if (!this.lg_remote_client.connected || this.lg_remote_recv_buffer.size <= 0) { this.cleanclient(); break; } this.lg_remote_security.recv(this.lg_remote_recv_buffer); } this.lg_remote_recv_packets = this.lg_remote_security.transferincoming(); if (this.lg_remote_recv_packets != null) { foreach (packet packet in this.lg_remote_recv_packets) { if (!this.remote) break; if (gameremotescanpackets.contains(packet.opcode)) { byte[] bytes = packet.getbytes(); if (packet.opcode != 20480 && packet.opcode != 36864) { if (packet.opcode == 12416) { int num2 = (int)packet.readuint8(); if (num2 == 2 || num2 == 3) { uint num3 = packet.readuint32(); foreach (clientsgame current in form1.clientlistgame) { if (form1.banlistesi.contains(this.ip.tostring())) break; if (current.lg_local_client.connected && current.lg_remote_client.connected) //vsro shit /* && current.uniqueid == num3*/ { this.party_sender = current; //globals.mainwindow.messageslogs("someone intived party !"); ** useless shit pls clear system yusl q xd break; } } } } this.lg_local_security.send(packet); } } else { this.lg_local_security.send(packet); } } } this.lg_remote_send_buffers = this.lg_remote_security.transferoutgoing(); if (this.lg_remote_send_buffers != null) { foreach (keyvaluepair<transferbuffer, packet> current2 in this.lg_remote_send_buffers) { if (!this.remote) break; packet packet = current2.value; transferbuffer key = current2.key; while (key.offset != key.size) { if (!this.remote) break; try { this.lg_remote_client.blocking = true; int num6 = this.lg_remote_client.send(key.buffer, key.offset, key.size - key.offset, socketflags.none); this.lg_remote_client.blocking = false; key.offset += num6; } catch { } } byte[] bytes = packet.getbytes(); } } thread.sleep(4); } } catch { cleanclient(); }
Comments
Post a Comment