i exceuted the serialforwarder and i got display saying that listening for
the client connections on the port 9001, i have written client application
in java ,serialforwarder application is recognising my client also but that
data is not being transferred
this mail has an client attachment
what could be the problem how can i transfer the data from the server to the
client?????????
import java.io.*;
import java.net.*;
class client{
public static void main(String args[])
{
try
{
BufferedReader stdin = new BufferedReader(
new InputStreamReader(System.in));
System.out.println("enter dest host:");
String hostname = stdin.readLine();
Socket s = new Socket (hostname,9001);
System.out.println("connected to:"+s.getInetAddress());
System.out.println("local port:"+s.getLocalPort());
System.out.println("remote port:"+s.getPort());
BufferedReader in = new BufferedReader(
new InputStreamReader(s.getInputStream()));
System.out.println();
while(true){
String str = in.readLine();
System.out.println(str);
}
}
catch (Exception ex)
{
System.out.println("error:"+ex);
}
}
}
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help