package GlobalSocketPackage;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class MainClass implements Runnable
{
public static Socket server;
public static BufferedReader br;
public static BufferedWriter bw;
/////////////////////////////////////////////////////////
public MainClass() {
System.out.println("Default Con.");
}
/////////////////////////////////////////////////////////
public MainClass(String m) {
try{
server = new Socket("10.10.10.1",5);
}
}catch(Exception ex){System.out.println("error"+ex);}
}
/////////////////////////////////////////////////////////
public void WriteRead() throws IOException, InterruptedException
{
br = new BufferedReader(new InputStreamReader(server.getInputStream()));
bw = new BufferedWriter(new OutputStreamWriter(server.getOutputStream()));
Thread th=new Thread();
th.start();
}
//////////////////////////////////////////////////////////
public static void main(String arg[])throws IOException, InterruptedException
{
MainClass Client=new MainClass("");
Client.WriteRead();
while(true)
try{
System.out.println("Connected");
}catch(Exception exx){}
}
public void run() {
throw new UnsupportedOperationException("Not supported yet.");
}
}