Newsgroups: microsoft.public.dotnet.framework.compactframework
Von: "Richard K" <junkm...@seventree.com>
Datum: Wed, 26 Nov 2003 16:00:55 -0600
Lokal: Mi 26 Nov. 2003 23:00
Betreff: Re: TcpClient.Connect takes 60 seconds
Answering my own question, Socket.Close seems to do the job. The callback
EndConnect errors out and the thread ends. And I guess the condition of the socket afterward doesn't matter if it is recreated for each connect attempt. news:bq048o$e7fi$1@news3.infoave.net... > That might work - I don't know, I have already changed the code to use
> Socket.BeginConnect/EndConnect which connects instantly using the same IP > address string. But that brings up another question... > In the desktop .NET framework WaitOne(delay in ms) can be used after > My question is, in that case isn't the callback thread still waiting on > Dick > ""David Kline [msft]"" <davi...@online.microsoft.com> wrote in message > > Chances are, the delay you are seeing is due to the TcpClient attempting > > MyTcpClient.Connect(IPAddress.Parse("192.168.1.1"), 8222); > > Thanks, > > Please do not send email directly to this alias. This alias is for Sie müssen sich anmelden, bevor Sie Nachrichten veröffentlichen können.
Bevor Sie eine Nachricht posten können, müssen Sie zunächst dieser Gruppe beitreten.
Bitte aktualisieren Sie vor dem Posten in den Abonnementeinstellungen Ihren Spitznamen.
Sie haben nicht die erforderliche Berechtigung zum Posten.
| ||||||||||||||