514515516517518519520521522523524
// 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." ); }
477478479480481482483484485486487
// Inject the protocol handler acceptor.setHandler( new KerberosProtocolHandler( this, store ) ); // Bind to the configured address acceptor.bind(); } else { // Kerberos can use UDP or TCP for ( Transport transport : transports )
293294295296297298299300301302303
// 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 ) {
322323324325326327328329330331332
// Set the handler acceptor.setHandler( new ChangePasswordProtocolHandler( this, store ) ); // Bind acceptor.bind(); } } LOG.info( "ChangePassword service started." ); //System.out.println( "ChangePassword service started." );
478479480481482483484485486487488
// Inject the protocol handler acceptor.setHandler( new KerberosProtocolHandler( this, store ) ); // Bind to the configured address acceptor.bind(); } else { // Kerberos can use UDP or TCP for ( Transport transport:transports )