commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1133796 - /commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java
Date Thu, 09 Jun 2011 11:26:02 GMT
Author: mturk
Date: Thu Jun  9 11:26:02 2011
New Revision: 1133796

URL: http://svn.apache.org/viewvc?rev=1133796&view=rev
Log:
Use SelectionKey api

Modified:
    commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java

Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java?rev=1133796&r1=1133795&r2=1133796&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestPosixEndpoint.java
Thu Jun  9 11:26:02 2011
@@ -54,11 +54,11 @@ public class TestPosixEndpoint extends A
             }
             while (true) {
                 try {
-                    System.out.println("Accepting connection ...");
+                    // System.out.println("Accepting connection ...");
                     List<SelectionKey> set = ps.select();
-                    System.out.println("Accepted  connection: " + set.size());
-                    
-                    LocalEndpoint e = ss.accept();
+                    // System.out.println("Accepted  connection: " + set.size());
+                    sk = set.get(0);
+                    LocalEndpoint e = ((LocalServerEndpoint)sk.endpoint()).accept();
                     assertNotNull(e.descriptor());
                 } catch (Exception x) {
                     fail("Accept failed " + x.toString());



Mime
View raw message