This project is read-only.

Feature request:Asyncronous sockets

Aug 16, 2011 at 11:13 PM


Can you please change the Connect() method to use an Async socket, so when there is a timeout connecting, application won't hang?

Thanks in advance,


Aug 16, 2011 at 11:43 PM

I'll look into it.

Aug 17, 2011 at 3:07 AM

Alright Sulc, I've added some new methods: BeginConnect() and EndConnect(). They should work exactly like other async methods in the .net runtime. A quick example:

IAsyncResult ar = client.BeginConnect();

// do some stuff while it's executing

try {
catch(Exception e) {
  // handle exception if there was one