Snapshot of near complete implementation

This commit is contained in:
2015-06-11 22:47:41 +01:00
parent 8dbb2e2d6d
commit fbb1375ffa
19 changed files with 816 additions and 308 deletions

View File

@@ -0,0 +1,19 @@
package com.github.boukefalos.ibuddy.server;
import com.github.boukefalos.ibuddy.iBuddy;
import com.github.boukefalos.ibuddy.helper.ServerHelper;
import base.server.socket.TcpServer;
public class iBuddyTcpServer extends TcpServer implements iBuddyServer {
protected iBuddy iBuddy;
public iBuddyTcpServer(iBuddy iBuddy, int port, Class<?> clientClass) {
super(port, clientClass);
this.iBuddy = iBuddy;
}
public void receive(byte[] buffer) {
ServerHelper.receive(iBuddy, buffer);
}
}