It's not a secret anymore!
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
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: 101
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Are those running on the same machine? Read Don't println to a Socket for a potential problem.
Rob Brew
Ranch Hand

Joined: Jun 23, 2011
Posts: 101
On the same machine, BattleServer can send but locks on readline() to receive. Windows machines.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: java networking, hangs at readline()
 
It's not a secret anymore!