e.printStackTrace();
    public void run() {        try {            istream = socket.getInputStream();            ostream = socket.getOutputStream();            SLPInputStream sis = new SLPInputStream(istream);            int version = sis.readByte();            int function = sis.readByte();            //System.out.println("TCP request: v="+version+", f="+function);            SLPMessageHeader msgReply = agent.handleNonReplyMessage(function, sis, false);            SLPOutputStream sos = new SLPOutputStream(new ByteArrayOutputStream());            msgReply.toOutputStream(sos);            ostream.write(sos.getByteArray());        }catch(IOException e) {            e.printStackTrace();        }catch(ServiceLocationException e) {            e.printStackTrace();        }    }