SachinPuthran / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

Can't stop while statement while reading BluetoothIputStream #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I'm starting a server in the PC
2. I'm starting a midlet in the cellphone (Sony Ericsson W300i)
3. Cellphone makes a connection to the PC via bluetooth
4. A new thread is open on the PC server to handle the cellphone 
connection.
5  I send some text that i entered in a textfield to the server
4. The server reads the text.

What is the expected output? What do you see instead?
Expected output is to see the text i put in the textfield.
When i'debbuging i see what i put in the textfield, but after it it 
doesn't break off the while, like it read a -1, it just keep in stepping 
state.
I need to send a final char token to finalize it right, when i don't want 
to do that, i just want to read all the stream and close the connection.

What version of the product are you using? On what operating system?
Last from SourceForge, Windows XP SP2.

Please provide any additional information below.

Original issue reported on code.google.com by polons...@gmail.com on 7 Jun 2007 at 3:40

Attachments:

GoogleCodeExporter commented 9 years ago
The bug was already fixed in version 2.0.0
You can try new version 2.0.0-SNAPSHOT it returns -1 if connection is closed 
remotely...

Original comment by skarzhev...@gmail.com on 8 Jun 2007 at 5:10