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)
package com.android.chat; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.ServerSocket; import java.net.Socket; import android.os.Handler; import android.os.Message; /** * Faz a leitura do lado do servidor. * @author Celso * */ public class TCPServer implements Runnable { Handler handlerServidor; ServerSocket socketGeralServidor; Socket socketServerCliente;//socket do lado do servidor para falar com este cliente public TCPServer(ServerSocket socketGeralServidor, Handler handlerServidor) { this.socketGeralServidor = socketGeralServidor; this.handlerServidor = handlerServidor; } @Override public void run() { try { while(true){ socketServerCliente = socketGeralServidor.accept();//bloqueia até ligação com novo cliente seja estabelecida if (socketServerCliente != null) { if (socketServerCliente.isConnected()) { // ligacao estabelecida } } char[] line = new char[100]; BufferedReader in = new BufferedReader(new InputStreamReader(socketServerCliente.getInputStream())); while (true) { line = new char[100]; in.read(line, 0, 100); if (line.length > 0) { String msg = new String(line); // processar a mensagem Message lmsg = new Message(); lmsg.what = 0; lmsg.obj = msg; handlerServidor.sendMessage(lmsg); } } } } catch (IOException ioe) { ioe.printStackTrace(); } } public Socket getSocketServerCliente(){ return socketServerCliente; } }