package fr.upem.net.tcp;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.charset.Charset;

public class ClientEOS {

    public static final Charset UTF8_CHARSET = Charset.forName("UTF-8");

    public static String getFixedSizeResponse(String request, SocketAddress server, int bufferSize) throws IOException {
    	// TODO
    	return null;
    }

    public static String getUnboundedResponse(String request, SocketAddress server) throws IOException {
    	// TODO
    	return null;
    }


    public static void main(String[] args) throws IOException {
        System.out.println(getFixedSizeResponse("GET / HTTP/1.1\r\nHost: www.google.fr\r\n\r\n", 
            new InetSocketAddress("www.google.fr", 80), 1024));
        // System.out.println(getUnboundedResponse("GET / HTTP/1.1\r\nHost: www.google.fr\r\n\r\n", 
        //      new InetSocketAddress("www.google.fr", 80)));
    }
}