Async sockets

  • Thread starter Thread starter Fernando
  • Start date Start date
F

Fernando

Is there anything or anyway to do something simmilar to WSAAsyncSelect which
is asyncronous but the notifications comes in the same thread( throgh
messages ) , which for simple things facilitates the programming logic ?

Is there a group specific to System.Net.Sockets ?
 
Thanks.


Peter Duniho said:
The Socket.Select() method is as close as you might get from a literal
point of view.

That said, using the asynchronous API (Socket.Begin...()/Socket.End...()
methods) in conjunction with Control.Invoke() or Control.BeginInvoke()
provides practically the same behavior as WSAAsyncSelect(), but without
the need for you to make up your own window messages.

I would generally not bother using Invoke() or BeginInvoke() unless I
actually needed to interact with a GUI object. But it's true that you
_can_ use those methods as a form of lazy thread synchronization, if
that's what you're trying to accomplish.


Not that I know of. Many of the issues related to socket programming in
.NET are identical to Winsock more generally, so the Winsock newsgroups
and resources (including the FAQ and MSDN section on Winsock 2) are
relevant. But you wouldn't find answers to questions specific to .NET
there.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top