515516517518519520521522523524525
// Inject the protocol handler acceptor.setHandler( new KerberosProtocolHandler( this, store ) ); // Bind to the configured address acceptor.bind(); } } LOG.info( "Kerberos service started." ); }
8990919293949596979899
// Allow the port to be reused even if the socket is in TIME_WAIT state ((DatagramSessionConfig)acceptor.getSessionConfig()).setReuseAddress( true ); // Start the listener acceptor.bind(); } else { for ( Transport transport:transports ) {
119120121122123124125126127128129
// No Nagle's algorithm ((NioSocketAcceptor)acceptor).getSessionConfig().setTcpNoDelay( true ); } // Start the listener acceptor.bind(); } } LOG.info( "DNS service started." ); }
102103104105106107108109110111112
// Inject the chain acceptor.setFilterChainBuilder( ntpChain ); // Start the listener acceptor.bind(); } else { for ( Transport transport:transports ) {
134135136137138139140141142143144
// Inject the chain acceptor.setFilterChainBuilder( ntpChain ); // Start the listener acceptor.bind(); } } LOG.info( "NTP server started." ); }
294295296297298299300301302303304
// Allow the port to be reused even if the socket is in TIME_WAIT state ((DatagramSessionConfig)acceptor.getSessionConfig()).setReuseAddress(true); // Start the listener acceptor.bind(); } /** * ProtocolCodecFactory which allows to test AAAA resolution