Login  
Search All Forums
Dart Home | PowerTCP Telnet for .NET | Custom Development Reply | PowerTCP Telnet for .NET Topics | Forums   
AuthorForum: PowerTCP Telnet for .NET
Topic: Clearing for buffer for Receive
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted July 14, 2006 9:48 AM

I want to be able to clear the buffer to prepare for a send/receive dialogue with the telnet server session, so I wrote a loop to receive until there is no data in the buffer, but there always seems to be data in the buffer. The count is always 1 or more (usually CHAR(10) and CHAR(13), but there is no data being sent back and forth?

What is the proper technique for doing this?

Thanks, Steve
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 17, 2006 8:57 AM

Before we begin, are you using a trial version of the product, and if not, which licensed version of the product do you have running?
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted July 17, 2006 9:36 AM

Trial version, from the readme:

Version 1.03 Highlights
More improvements to samples related to Visual Studio 2005 compatibility

Steve
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 17, 2006 9:46 AM

From the description you give, I have to assume that there is something going on in the loop that is interfering with the thread. What you are describing should not occur since calling Receive does clear the buffer.

If you are unable to determine what's going on, you will need to isolate the problem to a very simple demo program that can be zipped up and emailed to support@dart.com
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted July 17, 2006 10:36 AM

I will create a test project and zip and email in the next day or two, if I can not resolve.

Thanks for your help,

Steve
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX