directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nik...@apache.org
Subject svn commit: r371347 - in /directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio: DatagramTrafficControlTest.java SocketTrafficControlTest.java
Date Sun, 22 Jan 2006 18:51:31 GMT
Author: niklas
Date: Sun Jan 22 10:51:26 2006
New Revision: 371347

URL: http://svn.apache.org/viewcvs?rev=371347&view=rev
Log:
Changed InetAddress.getLocalhost() to "localhost"


Modified:
    directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/DatagramTrafficControlTest.java
    directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/SocketTrafficControlTest.java

Modified: directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/DatagramTrafficControlTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/DatagramTrafficControlTest.java?rev=371347&r1=371346&r2=371347&view=diff
==============================================================================
--- directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/DatagramTrafficControlTest.java
(original)
+++ directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/DatagramTrafficControlTest.java
Sun Jan 22 10:51:26 2006
@@ -18,7 +18,6 @@
  */
 package org.apache.mina.transport.socket.nio;
 
-import java.net.InetAddress;
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 
@@ -47,8 +46,7 @@
             throws Exception
     {
         IoConnector connector = new DatagramConnector();
-        SocketAddress addr = new InetSocketAddress( InetAddress.getLocalHost(), 
-                                                    port );
+        SocketAddress addr = new InetSocketAddress( "localhost", port );
         return connector.connect( addr, handler );
     }
 

Modified: directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/SocketTrafficControlTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/SocketTrafficControlTest.java?rev=371347&r1=371346&r2=371347&view=diff
==============================================================================
--- directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/SocketTrafficControlTest.java
(original)
+++ directory/trunks/mina/core/src/test/java/org/apache/mina/transport/socket/nio/SocketTrafficControlTest.java
Sun Jan 22 10:51:26 2006
@@ -18,7 +18,6 @@
  */
 package org.apache.mina.transport.socket.nio;
 
-import java.net.InetAddress;
 import java.net.InetSocketAddress;
 import java.net.SocketAddress;
 
@@ -47,8 +46,7 @@
             throws Exception
     {
         IoConnector connector = new SocketConnector();
-        SocketAddress addr = new InetSocketAddress( InetAddress.getLocalHost(), 
-                                                    port );
+        SocketAddress addr = new InetSocketAddress( "localhost", port );
         return connector.connect( addr, handler );
     }
 



Mime
View raw message