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: Running telnet on a separate thread - within a Windows Service
perf101
srs@perfectionsoftware.com

From: Pembroke Pines, FL USA
Posts: 18
Member Since: 07/01/02
posted June 5, 2006 4:21 PM

I am manually creating a separate thread to do the a telnet session but I am getting the following message:

BeginReceive() used without providing an event handler for EndReceive

If I comment out the BeginReceive() calls then it works, but I obviously need the responses back.

Do you have an example of how to do telnet on a completely separate and independant thread from the main thread?

The main thread is going to handle web requests (already working) then I am I planning on passing those requests (somehow, haven't figured that out yet) to the telnet session that is already established on that other thread, for it to send to the telnet host to get responses back.

Steve
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 6, 2006 8:20 AM

In order to receive asynchronously (BeginReceive), you need to have an EndReceive event defined. Maybe you want to be calling Receive (synchronous) instead?
Reply | PowerTCP Telnet for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX