• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Some problem with threads

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, dude, but internet is polish But, as you wish:





Hope it's ok.
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic