/** * Initializes our reader, writer, and the i/o filter chains based on the * specified socket. This is called internally when we startup and when (if) * SSL is started. */ public void setSocket(Socket socket) throws IOException { this.socket = socket; this.input = this.socket.getInputStream(); this.reader = new CRLFTerminatedReader(this.input); this.writer = new PrintWriter(this.socket.getOutputStream()); this.socket.setSoTimeout(this.server.getConnectionTimeout()); }
/** * Initializes our reader, writer, and the i/o filter chains based on * the specified socket. This is called internally when we startup * and when (if) SSL is started. */ public void setSocket(Socket socket) throws IOException { this.socket = socket; this.input = this.socket.getInputStream(); this.reader = new CRLFTerminatedReader(this.input); this.writer = new PrintWriter(this.socket.getOutputStream()); this.socket.setSoTimeout(this.server.getConnectionTimeout()); }
/** * Initializes our reader, writer, and the i/o filter chains based on * the specified socket. This is called internally when we startup * and when (if) SSL is started. */ public void setSocket(Socket socket) throws IOException { this.socket = socket; this.input = this.socket.getInputStream(); this.reader = new CRLFTerminatedReader(this.input); this.writer = new PrintWriter(this.socket.getOutputStream()); this.socket.setSoTimeout(this.server.getConnectionTimeout()); }