Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

Socket programming help  RSS feed

 
Don boscoo
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have written a java clent code to connect to the server and then login to the server. My login was successful but its not consistent. I had to run the program again and again as there is a request to be sent after login. it was not sucessfull, The problem is login is not consistent. when i run the program multiple times, sometimes it login and sometimes not.
Please help me.

Thanks.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Welcome to the JavaRanch.

Please TellTheDetails. We can't help you without seeing some code. Please provide some code where you think the problems is.
 
Campbell Ritchie
Marshal
Posts: 55678
161
  • Mark post as helpful
  • send pies
  • Report post to moderator
Too difficult a question for "beginning". I shall move this thread.
 
Campbell Ritchie
Marshal
Posts: 55678
161
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing as duplicate. Please read this.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!