Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package servidor;
- import inicio.LuxEmu;
- import inicio.Main;
- import java.io.IOException;
- import java.io.PrintWriter;
- import java.net.Socket;
- import estaticos.Encriptador;
- public class Conector implements Runnable {
- private Socket _socket;
- private PrintWriter _out;
- private Thread _thread;
- public Conector(int puerto) {
- try {
- _socket = new Socket(LuxEmu.IP_LOCAL, puerto);
- _out = new PrintWriter(_socket.getOutputStream());
- _thread = new Thread(this);
- _thread.setDaemon(true);
- _thread.start();
- } catch (IOException e) {
- Main.printError("\nINTENTANDO VOLVER A RECONECTAR CON EL REALM EN 5 SEGUNDOS");
- try {
- Thread.sleep(5000L);
- } catch (Exception localException2) {}
- new Conector(LuxEmu.PUERTO_SERVIDOR);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement