All pastes #2122044 Raw Edit

nathan1233445

public text v1 · immutable
#2122044 ·published 2012-02-27 14:36 UTC
rendered paste body

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
import java.net.Socket;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author NWaddington
 */
public class SimpleSocketClient {

    public SimpleSocketClient() {
        try{
            Socket clientsock = new Socket("www.uclan.ac.uk",80);
           BufferedReader in = new BufferedReader(new InputStreamReader(clientsock.getInputStream()));
        }catch (IOException e){};
    }

    /**
     * @param args the command line arguments
     */
   
    public static void main(String[] args) {
        // TODO code application logic here
    }
}