trunk contents moved to root

This commit is contained in:
Jindra Petřík
2014-05-10 20:50:57 +02:00
parent 1b851e66a8
commit 199a4d0c2b
2296 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
package com.jpexs.proxy;
import java.io.*;
import java.net.Socket;
public class Client extends Connection
{
@Override
public void promoteToServerSSL() {
super.promoteToServerSSL();
in = new BufferedInputStream(in);
out = new BufferedOutputStream(out);
}
/**
* Create a Client from a Socket.
*/
Client(Socket s) throws IOException
{
super(s);
in = new BufferedInputStream(in);
//out = new DebugOutputStream(new BufferedOutputStream(out));
out = new BufferedOutputStream(out);
}
/**
* Read a Request.
*
* @returns a Request.
* @see Request
*/
Request read() throws IOException
{
Request request = new Request(this);
request.read(getInputStream());
return request;
}
/**
* Write a Reply
*
* @see Reply
*/
void write(Reply reply) throws IOException
{
reply.write(getOutputStream());
}
}