• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java networking, hangs at readline()

 
Rob Brew
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are those running on the same machine? Read Don't println to a Socket for a potential problem.
 
Rob Brew
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the same machine, BattleServer can send but locks on readline() to receive. Windows machines.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic