Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

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

OpenStudy (farmdawgnation):

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.

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

I really need your help ,pleasse

OpenStudy (farmdawgnation):

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?

OpenStudy (farmdawgnation):

If not it's cool I just won't have time until late tonight my time at least.

OpenStudy (anonymous):

It's really very kind of you!I will be really thankful.

OpenStudy (farmdawgnation):

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

OpenStudy (anonymous):

Thanks for everything!

OpenStudy (anonymous):

dear friends I'm I'm really in need of your help!pleaaaasssssse take a look if you can!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!