/** upstream connections */
private Socket HTTP_Socket;
private BufferedOutputStream HTTP_out;
- private Jhttpp2ServerInputStream HTTP_in;
+ private BufferedInputStream HTTP_in;
public Jhttpp2HTTPSession(Jhttpp2Server server,Socket client) {
init();
/** connects to the given host and port */
public void connect(InetAddress host,int port) {
HTTP_Socket = new Socket(host,port);
- HTTP_in = new Jhttpp2ServerInputStream(server,this,HTTP_Socket.getInputStream(),false);
+ HTTP_in = new BuferedInputStream(HTTP_Socket.getInputStream());
HTTP_out = new BufferedOutputStream(HTTP_Socket.getOutputStream());
}
/** converts an String into a Byte-Array to write it with the OutputStream */
+++ /dev/null
-/* Written and copyright 2001 Benjamin Kohl.\r
- * Distributed under the GNU General Public License; see the README file.\r
- * This code comes with NO WARRANTY.\r
- */\r
-\r
-import java.io.BufferedInputStream;\r
-import java.io.InputStream;\r
-import java.io.IOException;\r
-\r
-public class Jhttpp2ServerInputStream extends BufferedInputStream {\r
- private Jhttpp2HTTPSession connection;\r
-\r
- public Jhttpp2ServerInputStream(Jhttpp2Server server,Jhttpp2HTTPSession connection,InputStream a,boolean filter) {\r
- super(a);\r
- this.connection=connection;\r
- }\r
- public int read_f(byte[] b) {\r
- return read(b);\r
- }\r
-}\r
-\r