I
Ike
If I succesfully create a Socket as follows:
Socket sock = new Socket("192.168.1.55", 1000);
Then, go to send data, and listen in on it as follows:
BufferedWriter os = new BufferedWriter(new
OutputStreamWriter(sock.getOutputStream()));
BufferedReader is = new BufferedReader(new
InputStreamReader(sock.getInputStream()));
try{
os.write("D0");
os.flush();
returnedString =is.readLine();
System.out.println(returnedString);
}catch (java.io.IOException e) {
I get hung up on --> is.readLine();
I don't understand why the system would simply hang here. Am I missing
something? Am I doing something really stupid here that I am oblivious to?
Thanks, Ike
Socket sock = new Socket("192.168.1.55", 1000);
Then, go to send data, and listen in on it as follows:
BufferedWriter os = new BufferedWriter(new
OutputStreamWriter(sock.getOutputStream()));
BufferedReader is = new BufferedReader(new
InputStreamReader(sock.getInputStream()));
try{
os.write("D0");
os.flush();
returnedString =is.readLine();
System.out.println(returnedString);
}catch (java.io.IOException e) {
I get hung up on --> is.readLine();
I don't understand why the system would simply hang here. Am I missing
something? Am I doing something really stupid here that I am oblivious to?
Thanks, Ike