1 package org.objectweb.proactive.ext.benchsocket; 2 3 import java.io.IOException ; 4 5 import java.net.ServerSocket ; 6 import java.net.Socket ; 7 8 9 public class BenchServerSocket extends ServerSocket { 10 public BenchServerSocket() throws IOException { 11 super(); 12 } 13 14 public BenchServerSocket(int port) throws IOException { 15 super(port); 16 } 17 18 public Socket accept() throws IOException { 19 Socket s = new Socket (); 20 implAccept(s); 21 return new BenchClientSocket(s); 22 } 23 } 24 | Popular Tags |