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." ); }
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." ); }
93949596979899100101102103
// 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 ) {
123124125126127128129130131132133
// No Nagle's algorithm ((NioSocketAcceptor)acceptor).getSessionConfig().setTcpNoDelay( true ); } // Start the listener acceptor.bind(); } } LOG.info( "DNS service started." ); System.out.println( "DNS service started." );
462463464465466467468469470471472
// 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 )
506507508509510511512513514515516
// Inject the protocol handler acceptor.setHandler( new KerberosProtocolHandler( this, store ) ); // Bind to the configured address acceptor.bind(); } } LOG.info( "Kerberos service started." ); System.out.println( "Kerberos service started." );
287288289290291292293294295296297
316317318319320321322323324325326
// Set the handler acceptor.setHandler( new ChangePasswordProtocolHandler( this, store ) ); // Bind acceptor.bind(); } } LOG.info( "ChangePassword service started." ); System.out.println( "ChangePassword service started." );