directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r520749 - /directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
Date Wed, 21 Mar 2007 05:00:11 GMT
Author: erodriguez
Date: Tue Mar 20 22:00:10 2007
New Revision: 520749

URL: http://svn.apache.org/viewvc?view=rev&rev=520749
Log:
Minor tweak to DNS server to modernize MINA usage.

Modified:
    directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java

Modified: directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java?view=diff&rev=520749&r1=520748&r2=520749
==============================================================================
--- directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
(original)
+++ directory/apacheds/branches/apacheds-sasl-branch/protocol-dns/src/main/java/org/apache/directory/server/dns/DnsServer.java
Tue Mar 20 22:00:10 2007
@@ -29,6 +29,7 @@
 import org.apache.directory.server.dns.store.RecordStore;
 import org.apache.mina.common.IoAcceptor;
 import org.apache.mina.common.IoHandler;
+import org.apache.mina.common.IoServiceConfig;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -59,7 +60,7 @@
      * @param acceptor
      * @param store
      */
-    public DnsServer( DnsConfiguration config, IoAcceptor acceptor, RecordStore store )
+    public DnsServer( DnsConfiguration config, IoAcceptor acceptor, IoServiceConfig serviceConfig,
RecordStore store )
     {
         this.config = config;
         this.acceptor = acceptor;
@@ -72,7 +73,7 @@
         {
             handler = new DnsProtocolHandler( config, this.store );
 
-            acceptor.bind( new InetSocketAddress( port ), handler );
+            acceptor.bind( new InetSocketAddress( port ), handler, serviceConfig );
 
             log.debug( "{} listening on port {}", name, new Integer( port ) );
         }



Mime
View raw message