wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes java networking, hangs at readline() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java networking, hangs at readline()" Watch "java networking, hangs at readline()" New topic

java networking, hangs at readline()

Rob Brew
Ranch Hand

Joined: Jun 23, 2011
Posts: 94
Hi all.

I'm playing with networking in Java, i can receive using a client fine, but can't send using the same topic, the server freezes on readline();

code below what is wrong?



Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39541
Are those running on the same machine? Read Don't println to a Socket for a potential problem.

Ping & DNS - updated with new look and Ping home screen widget
Rob Brew
Ranch Hand

Joined: Jun 23, 2011
Posts: 94
On the same machine, BattleServer can send but locks on readline() to receive. Windows machines.
I agree. Here's the link: http://aspose.com/file-tools
subject: java networking, hangs at readline()
Similar Threads
UnknownHostException when trying to connect to localhost
Threaded Application won't run.
Java networking, nothing happens
Problem with sockets example
Java Head First Client Server Example