By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,418 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,418 IT Pros & Developers. It's quick & easy.

Async TCPClient / TCP Listener

P: n/a
Can someone point me to a good implementation of Async Sockets in c# ?

So far i did not find a lot usefull info on this item.

For the TcpListener, an example that supports multiple incoming connections
would be very usefull to get me started.
Johan
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Mon, 9 Feb 2004 00:57:39 +0100, Sagaert Johan
<RE*************@hotmail.com> wrote:
Can someone point me to a good implementation of Async Sockets in c# ?

So far i did not find a lot usefull info on this item.

For the TcpListener, an example that supports multiple incoming
connections
would be very usefull to get me started.


I found this quite useful:

http://snipurl.com/4el8

Let me know how you get on. I'm writing something similar, except that my
central machine is a client connecting to multiple servers. The data I am
polling for is important, so I want to ensure that errors on some servers
do not obstruct data flow from others, and the IOCP model seems to be
useful for this.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #2

P: n/a
On Tue, 10 Feb 2004 14:11:45 -0000, Mike Ruane-Torr
<mike.ruane-torr@USE_EVENS_ixwiflaoyn.net> wrote:
On Mon, 9 Feb 2004 00:57:39 +0100, Sagaert Johan
<RE*************@hotmail.com> wrote:
Can someone point me to a good implementation of Async Sockets in c# ?

So far i did not find a lot usefull info on this item.

For the TcpListener, an example that supports multiple incoming
connections
would be very usefull to get me started.


I found this quite useful:

http://snipurl.com/4el8

Let me know how you get on. I'm writing something similar, except that
my central machine is a client connecting to multiple servers. The data
I am polling for is important, so I want to ensure that errors on some
servers do not obstruct data flow from others, and the IOCP model seems
to be useful for this.


This might be even more relevant to you:
http://www.continuumtechnologycenter...ketArticle.htm

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #3

P: n/a
Sagaert Johan wrote:
Can someone point me to a good implementation of Async Sockets in c# ?

So far i did not find a lot usefull info on this item.

For the TcpListener, an example that supports multiple incoming
connections would be very usefull to get me started.


TcpListener does not offer async I/O support -- you need to use Sockets in
order to do that.

You can do async I/O (BeginRead(), BeginWrite(), etc.) on the NetworkStream
returned by TcpClient's GetStream() method.

Cheers,

--
Joerg Jooss
jo*********@gmx.net

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.