// Attach the business logic to the server
acceptor.setHandler( new TimeServerHandler() );
// Configurate the buffer size and the iddle time
acceptor.getSessionConfig().setReadBufferSize( 2048 );
// And bind !
acceptor.bind( new InetSocketAddress(PORT) );
}
}
over!