473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Async TCPClient / TCP Listener

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
3 14516
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Theo | last post by:
Hi, I am using a tcpclient and a tcplistener to send and receive packets. The client sends a packet and the listener replies with another one. I can send 2 packets and get an answer from the...
3
by: מורדי | last post by:
Hi, I'm writing a client/server application in which the client send a series of screenshots to the server to be saved using the tcpclient. in most cases the first screenshot is transmitted ok...
8
by: Terry Olsen | last post by:
I've tried the following code straight out of MSDN. But my app still blocks while listening. Isn't this code supposed to keep the UI responsive while listening? Or maybe I'm not doing it...
1
by: Anders Berg | last post by:
Hi! I'm developing a very simple chat application in VB.NET and I've stumbled into a problem. For simplicity I'm using the TcpListener and TcpClient classes. However, at one point I discovered...
7
by: Roemer | last post by:
Hi all I stumbled over a new problem: I have a programm with just a class that is asynchronous listening for network connections. As soon as someone connected, a new form needs to be created....
6
by: Shak | last post by:
Hi all, Three questions really: 1) The async call to the networkstream's endread() (or even endxxx() in general) blocks. Async calls are made on the threadpool - aren't we advised not to...
5
by: Arno | last post by:
reposted with the right microsoft managed newsgroup ID: Sorry for the inconvinience Hi, I've written a class for client-socket connection, but I get a lot of times the error message "Unable...
6
by: Bjoern Schliessmann | last post by:
Hello, I'm currently trying to implement a simulation program with Kamaelia and need a reliable TCP connection to a data server. From Twisted, I know that a method is called if the connection...
4
by: Veeraraghavan | last post by:
Hi All, I am developing a client server communication using system.net.socket and I am finding it very difficult to get a solution for this. I started with single port communication with single...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.