restart.server
Class ErrorThread

java.lang.Object
  extended by restart.server.ErrorThread

public class ErrorThread
extends java.lang.Object

Singleton to manage unauthorized connections

Author:
Thibault Ducray

Method Summary
static void sendErrorAndClose(java.net.Socket socket, ErrorCode errCode)
          Return an error code to the client and close the socket.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sendErrorAndClose

public static void sendErrorAndClose(java.net.Socket socket,
                                     ErrorCode errCode)
Return an error code to the client and close the socket.