Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; public class newConnection implements Runnable { private Socket clientSocket; //socket que "vem" do cliente newConnection(Socket socketcliente) { this.clientSocket= socketcliente; } private int login(String utilizador, String password) { if(utilizador.equals("user1") && password.equals("userpass")) return 1; else return 0; } @Override public void run() { try { ObjectInputStream in = new ObjectInputStream(clientSocket.getInputStream());// ler ObjectOutputStream out = new ObjectOutputStream(clientSocket.getOutputStream()); // escrever String user_email; String user_pass; do { user_email = (String)in.readObject(); user_pass = (String)in.readObject(); }while(login(user_email,user_pass)==0); } catch (Exception e) { System.out.println("C-TCP - C: Error"+ e); } } }