buf=new byte[bufSize];
}
public void setSocket(Socket socket) throws IOException {
if( sin==null)
sin = new RecycleBufferedInputStream ( socket.getInputStream());
else
sin.setInputStream( socket.getInputStream());
this.socket = socket;
moreRequests = true;
sout=socket.getOutputStream();