Hi dear friends,I have a problem with my code in java socket programming.can anyone help me with?if yes,I send my code.Thanks
It might help if you post a more specific question, but yes, we have a lot of people on here who could help you with sockets.
In this program I want to write 2 players.1 is the host of the game (GCH_thread)and another is the player(GCP_thread).The host is a thread which start working in my server class.and the player starts working in my client class.In the host thread I want to choose a word and then ask the player to guess the letters of this word.my problem is that when I run this program the second thread doesn't operate the codes.I don't know what the problem is...(the game we should write is "hanged man" but in socket programming ) thanks for your help I really need s.o to help me.
I really need your help ,pleasse
Sorry, mas_gh90, I haven't had the time to look at this yet. This is more complex than a quick solution. heh. @agdgdgdgwngo - Any chance you will have time to look at this?
If not it's cool I just won't have time until late tonight my time at least.
It's really very kind of you!I will be really thankful.
So, I still don't have time to look into this a ton - the exception I'm seeing is complaining about the scanner not having a next line. What it looks like is happening is the client is disconnecting and quitting when the scanner tries to read data? I haven't done much with the scanner class before. Not too familiar with it, but it is odd that your client just connects and then disconnects. o.O
Thanks for everything!
dear friends I'm I'm really in need of your help!pleaaaasssssse take a look if you can!
Join our real-time social learning platform and learn together with your friends!