This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some problem with threads

 
Kacper Szmigiel
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! Can you tell me what's wrong with this code? I turn on server, client - everything is ok, connection etc. But when I write something on client's input sender's thread is just stopping the program. Client doesn't send anything (there isn't any comunicate) and we can't write anything. Here's the client's code:



And server:

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, but I'm not able to follow your code with the Polish identifiers. Can you post a version with the English equivalents of your class, method, and variable names? I know it may seem like a lot of work, but you'll have better luck here if you make it as easy as possible for people to read and understand your code. Although there are people from all over the world here, English is the primary language used, and I would have to assume that it's the native language of the majority of people who answer questions here. I'd also assume that the number of people who speak Polish is pretty small.
 
Kacper Szmigiel
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, dude, but internet is polish But, as you wish:





Hope it's ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic