Snapshot of near complete implementation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user