Hi.I have this little-simple client(applet) that I have 
attacked.----------------------------------------------------------class client 
implements ActionListener {public void actionPerformed(ActionEvent e1) {try {
String comm = "s...@localhost:9002";PhoenixSource ps = 
BuildSource.makePhoenix(comm, PrintStreamMessenger.err);MoteIF mif = new 
MoteIF(ps);

Socket skt = new Socket("localhost",9002);BufferedReader in = new 
BufferedReader(newInputStreamReader(skt.getInputStream()));
System.out.println("Waiting for the socket");while (!in.ready()) 
{}System.out.println("Socket is ready");String message = 
in.readLine();System.out.print("Received string1: " + message + 
"\n");System.out.println(in.readLine());jTextArea1.append("Server: " + message);
System.out.print(message + "out.print\n");in.close();}catch(Exception e) 
{System.out.print("Whoops! It didn't work! \n");e.printStackTrace();    } 
}}-------------------------------------------------------------------
It connects to serialForwarder, but it is waiting for messages that the server 
(serialForwarder) sends to him.How I can do to have this messages 
(packets)?thanks
_________________________________________________________________
Porta Hotmail in vacanza. Leggi la posta dal cellulare!
http://new.windowslivemobile.msn.com/IT-IT/windows-live-hotmail/default.aspx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to