• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BufferedReader and Socket trouble

 
David Vallejo
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been trying to fix this code for some time now and it still doesn't work. I want to the client to send some text to the server, and for the server to respond with hardcoded text from an array. I can get the server to receive and display text from the client, but not vice versa. My command prompt freezes up as well after you write two lines to the server, which may be because of the text from the array being sent from the server. Sorry if the code is a bit sloppy.



 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could this be the problem? Don't println to a Socket
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic