this is the code i have attached,what should i send to establish data
exchange and where to send?????
when i run this program SF gui is showing number of clients is "1" but there
is no data transfer from the server
plzzzz show me a way to fix this problem
if execute telnet localhost 9001
i got T! and nothing else
/*************************************************************************************************************************************/
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);
}
}
}
/***********************************************************************************************/
On Tue, Feb 26, 2008 at 3:31 PM, Siirtola Harri <[EMAIL PROTECTED]>
wrote:
> I couldn't open your attachment. Do you handle SF handshaking? It sends
> two bytes which you should return in order to establish a connection.
>
> Harri
>
> ------------------------------
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *subhash nemani
> *Sent:* Tuesday, February 26, 2008 8:30 AM
> *To:* [email protected]
> *Subject:* [Tinyos-help] SERAILFORWARDER CLIENT
>
> 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?????????
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help