Re: Asycn TCPListener Sample Stops Listening URGENT!!!





MSDN wrote:
Can you please give an example of how to Restart the Accept?

Reinvoke BeginAccept, otherwise noone will be listening.

And any other good samples for that matter?

I known how I like it ;)

Something along the way in EchoServer<T> and (by analogy) Parrot<T> at
https://slog.dk/svn/home/jensen/source/msgio/trunk/msgio/Program.cs, and

That code isn't a tutorial, but it is an example of some (I think :)
very robust code using async-programming. It certainly doesn't crash
when running the test, which opens and closes stuff all the time.

--
Helge Jensen
mailto:helge.jensen@xxxxxxx
sip:helge.jensen@xxxxxxx
-=> Sebastian cover-music: http://ungdomshus.nu <=-
.



Relevant Pages


Loading