1 import java
.net
.Socket
;
2 import java
.net
.SocketException
;
5 * Default connection handler. Very basic, does not read or send anything.
7 public class DefaultHandler
implements Runnable
{
10 public DefaultHandler(Socket socket
) {
13 socket
.setTcpNoDelay(false);
14 } catch (SocketException e
) {
15 // TODO Auto-generated catch block
18 new Thread(this).start();
23 // here you can customize operations you want to test though it's not necessary
24 System
.out
.println("new socket opening on " + socket
.getLocalPort());
25 while (!socket
.isOutputShutdown()) {
28 } catch (InterruptedException e
) {
29 // TODO Auto-generated catch block