public ServerSocketChannel(final Socket socket,final IHttpServerEventListener clientListener){
  try {
    this.mClientListener=clientListener;
    this.mSocket=socket;
    this.mInputStream=socket.getInputStream();
    this.mOutputStream=socket.getOutputStream();
    this.mHttpFrameParser=new HttpFrame();
  }
 catch (  IOException e) {
  }
}

public ServerSocketChannel ( final Socket socket , final IHttpServerEventListener clientListener ) { try { this . mClientListener = clientListener ; this . mSocket = socket ; this . mInputStream = socket . getInputStream ( ) ; this . mOutputStream = socket . getOutputStream ( ) ; this . mHttpFrameParser = new HttpFrame ( ) ; } catch ( IOException e ) { } }
initialize socket connection when the connection is available ( socket parameter wil block until it is opened ) .
