467,087 Members | 1,292 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,087 developers. It's quick & easy.

Telnet client and problem processing commands quickly

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.


Mar 14 '06 #1
  • viewed: 1258

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Yannick Turgeon | last post: by
4 posts views Thread by Donnal Walter | last post: by
3 posts views Thread by Horst Walter | last post: by
3 posts views Thread by Steve Koon | last post: by
2 posts views Thread by b00x | last post: by
5 posts views Thread by pbd22 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.