104105106107108109110111112113114
// Inject the chain acceptor.setFilterChainBuilder( ntpChain ); // Start the listener acceptor.bind(); } else { for ( Transport transport:transports ) {
136137138139140141142143144145146
// Inject the chain acceptor.setFilterChainBuilder( ntpChain ); // Start the listener acceptor.bind(); } } LOG.info( "NTP server started." ); System.out.println( "NTP server started." );
286287288289290291292293294295296
// 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
287288289290291292293294295296297
// 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 ) {
316317318319320321322323324325326
// Set the handler acceptor.setHandler( new ChangePasswordProtocolHandler( this, store ) ); // Bind acceptor.bind(); } } LOG.info( "ChangePassword service started." ); System.out.println( "ChangePassword service started." );
9293949596979899100101102
122123124125126127128129130131132
// 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." );
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 )