This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java networking, hangs at readline()" Watch "java networking, hangs at readline()" New topic
Author

java networking, hangs at readline()

Rob Brew
Ranch Hand

Joined: Jun 23, 2011
Posts: 99
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?

BattleServer.java


NetLoad()

Ulf Dittmer
Marshal

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


Ping & DNS - my free Android networking tools app
Rob Brew
Ranch Hand

Joined: Jun 23, 2011
Posts: 99
On the same machine, BattleServer can send but locks on readline() to receive. Windows machines.
 
jQuery in Action, 2nd edition
 
subject: java networking, hangs at readline()