forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.5 KiB
36 lines
1.5 KiB
3 years ago
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||
|
// Magicbane Emulator Project © 2013 - 2022
|
||
|
// www.magicbane.com
|
||
|
|
||
|
|
||
|
package engine.net.client;
|
||
|
|
||
|
import engine.net.AbstractConnection;
|
||
|
import engine.net.AbstractConnectionManager;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.net.InetAddress;
|
||
|
import java.nio.channels.SocketChannel;
|
||
|
|
||
|
public class ClientConnectionManager extends AbstractConnectionManager {
|
||
|
|
||
|
public ClientConnectionManager(String threadName, InetAddress hostAddress, int port)
|
||
|
throws IOException {
|
||
|
super(threadName, hostAddress, port);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected AbstractConnection getNewIncomingConnection(SocketChannel sockChan) {
|
||
|
return new ClientConnection(this, sockChan);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected AbstractConnection getNewOutgoingConnection(SocketChannel sockChan) {
|
||
|
return new ClientConnection(this, sockChan);
|
||
|
}
|
||
|
}
|