Refactor from base project

This commit is contained in:
2015-06-25 16:00:44 +01:00
parent 62796af99b
commit 6590ddac10
3 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ public class Loader extends AbstractLoader<Loader> {
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
String host = properties.getProperty("remote.host");
int port = Integer.valueOf(properties.getProperty("remote.port"));
addSender(protocol, implementation, host, port);
addClientSender(protocol, implementation, host, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse remote.port");
}
@@ -44,7 +44,7 @@ public class Loader extends AbstractLoader<Loader> {
String protocol = properties.getOrDefault("server.protocol", "tcp").toString();
String implementation = properties.getOrDefault("tcp.implementation", "socket").toString();
int port = Integer.valueOf(properties.getProperty("server.port"));
addForwarder(protocol, implementation, port);
addServerForwarder(protocol, implementation, port);
} catch (NumberFormatException e) {
throw new LoaderException("Failed to parse server.port");
}

View File

@@ -12,8 +12,8 @@ import proto.Ibuddy.Flap;
import proto.Ibuddy.Head;
import proto.Ibuddy.Nudge;
import proto.Ibuddy.State;
import base.receiver.Forwarder;
import base.server.forwarder.AbstractReceiver;
import base.Forwarder;
import base.server.receiver.AbstractReceiver;
public class Server extends AbstractReceiver {
protected iBuddy iBuddy;

View File

@@ -20,7 +20,7 @@ import proto.Ibuddy.State;
import proto.Ibuddy.Type;
import proto.Ibuddy.Wings;
import base.Control;
import base.sender.Sender;
import base.Sender;
import com.github.boukefalos.ibuddy.iBuddy;