Skip to content

Instantly share code, notes, and snippets.

@thiagodiogo
Created June 17, 2010 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagodiogo/441503 to your computer and use it in GitHub Desktop.
Save thiagodiogo/441503 to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String args[]){
ServerSocketThiago server;
server = new ServerSocketThiago();
server.iniciaServidor();
System.out.println("Servidor iniciado");
ClientSocketThiago client;
client = new ClientSocketThiago();
client.iniciaCliente();
}
}
@thiagodiogo
Copy link
Author

public static void main(String args[]){
ServerSocketThiago server;
server = new ServerSocketThiago();
server.iniciaServidor();
System.out.println("Servidor iniciado");
}

@thiagodiogo
Copy link
Author

public class Cliente {

public static void main(String args[]){

    ClientSocketThiago client;
    System.out.println("Cliente criado...");
    client = new ClientSocketThiago();
    System.out.println("Cliente instanciado...");
    client.iniciaCliente();
    System.out.println("Cliente terminado...");
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment