By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

Telnet client and problem processing commands quickly

P: n/a
Hello,
I have a VS 2005 windows form app that I am creating. It uses Async
socket to telnet which sends and receives commands. Everything seems
to be working fine until I attempt to process a command quickly. For
example, I want to creata a script and run that script on the telnet
window. For simpliciy lets say I would like to list directory contents
2 times in a row. I want to process "dir" two times.

So, via code I send the dir command two separate times. When I do this
I only get a single response back. I can see in code both commands
being executed, but only receive one reply. If I do this separately
and type out dir click enter to send; type dir click enter to send, I
get both responses.

I am wondering if there is a problem here with timing or perhaps I have
something messed up in the threading.

Is there anything in general that I can look into to help diagnose the
problem? It is tough because if I start usiing break points in between
commands the code always works because there is a delay. I didn't want
to have to sleep in between commands, I though tthe async process would
handle all callbacks without sleeping.

-J

Mar 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.