All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.weicoder.netty.server.TcpServer Maven / Gradle / Ivy

The newest version!
package com.weicoder.netty.server;

import io.netty.channel.ChannelHandler;

import com.weicoder.netty.base.BaseServer;
import com.weicoder.netty.handler.NettyHandler;
import com.weicoder.socket.params.SocketParams;

/**
 * netty tcp 服务器
 * @author WD
 */
public final class TcpServer extends BaseServer {

	@Override
	protected ChannelHandler handler() {
		return new NettyHandler("server");
	}

	@Override
	protected int port() {
		return SocketParams.SERVER_PORT;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy