Code example for InetSocketAddress

0
	public static void main(String[] args) {
		ServerBootstrap bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
				Executors.newCachedThreadPool(), Executors.newCachedThreadPool()));
 
		bootstrap.setPipelineFactory(new WebSocketServerPipelineFactory());
		InetSocketAddress inetSocketAddress = new InetSocketAddress(2012);
		bootstrap.bind(inetSocketAddress);
		logger.debug("server boot at {}", inetSocketAddress);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE