• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem re-connecting to server

 
Wong Kok Choy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've been working on a socket program to connect to a server written by my customer to send some commands to him. I have this rather strange problem, and I'm not very sure if it's on my side or his and was hoping you all could help me out with some pointers to the right direction.. It's actually like this, the program connects and works, for a certain period of time. This certain period of time could be random..like..hours..sometimes just a few minutes, before the server disconnects me. In such a situation, I will attempt to reconnect to the server. However, the strange thing is that, when I reconnect to him, even after numerous retries, I am still unable to establish a proper session with him. Under a normal process, I'm supposed to connect and upon connecting, send a login string to him. The login string appears on his end...but after that, that's the end of it. I receive no acknowledgement from him. And even after numerous attempts to reconnect, it's still the same. Now, the strangest thing is, when I close the program, and open it back up again, it reconnects instantly without problem and continues to do it's work.. I was wondering if there's something I missed or should check? Really hope you all could help me out here as I'm really stumpped.. Hope to hear from you all soon.. Thanks in advance..
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi "WongKC" --
I see by your post count that you are relatively new here. I hope you're finding the site helpful.
I'm posting to point you to JavaRanch's naming policy we have at JavaRanch and ask that you modify your screen name to conform to it. We don't keep too many rules on this site, but one that we believe is important is that every one use their name when participating.
Please take a moment to review the policy. You are welcome to send me a private message if you have questions.
Thanks and enjoy your time on JavaRanch!
[ April 19, 2004: Message edited by: Michael Ernest ]
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't had to ask two people in the same topic to review the naming policy that I can remember. But the last time someone posted with a name clearly violating the policy right after I posted a request, I deleted it. Funny for a moment, then the moment's gone, as they say in Kansas.
"Java Programmer," please change your name. If it's not changed before I have to leave work today, I'll remove your post.
[ April 20, 2004: Message edited by: Michael Ernest ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!