Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java TCP socket client issue on linux

843790Sep 5 2009 — edited Sep 9 2009
Hello. I wrote a java TCP socket client. It works just fine on Windows, but it doesn't work on Linux.
There are any known issues with TCP sockets on linux?

-------------
Error example:

java -jar idec-cronjob.jar -c

info: Connecting to 71.167.194.225:8080...
info: Connected.
info: Timeout setup is 30000 msec.
send: 05 46 46 30 52 44 30 30 30 30 30 34 32 37
error: message receive error!
Reception error!

----------------
Working Example:

java -jar idec-cronjob.jar -c

info: Connecting to 71.167.194.225:8080...
info: Connected.
info: Timeout setup is 30000 msec.
send: 05 46 46 30 52 44 30 30 30 30 30 34 32 37
recv: 06 30 30 30 31 34 37 42 34 32 39 42 33 42
Main temperature: 77.540001

The code listing could be found at: http://www.papernapkin.org/pastebin/view/6208/

Thanks for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2009
Added on Sep 5 2009
16 comments
848 views