471,605 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Asynchronous connection / normal connection

Hi
I would like to ask you what is the difference in creating both kinds
of connections.
What are advantages and disadvantages?
Is there a rule saying that in some cases we should send data
asynhronousl ( etc.. )?
Till now i have only been using Normal Socket connections.
Socket.Listen etc....
Now i would like to go futher ...
For any help - thx
PK

Dec 20 '05 #1
1 2668
Hi,

The difference is that the sync. the send/receive operation block the
thread, where the Async method you pass a delegate that is a method which
will be called when there is data to be received for example.
In the MSDN Library you can find very explanatories descriptions of the
methods needed

When to use it ?
Depends of your escenario , frankly I have never used it , all the
communication system I've implemented are sync'ed. but if you have a app
that can receive/send data in a random or not in a constant way you could
use Async sockets.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Piotrekk" <Pi*************@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Hi
I would like to ask you what is the difference in creating both kinds
of connections.
What are advantages and disadvantages?
Is there a rule saying that in some cases we should send data
asynhronousl ( etc.. )?
Till now i have only been using Normal Socket connections.
Socket.Listen etc....
Now i would like to go futher ...
For any help - thx
PK

Dec 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Corne Oosthuizen | last post: by
4 posts views Thread by Matthew Groch | last post: by
4 posts views Thread by taskswap | last post: by
reply views Thread by Bishoy George | last post: by
4 posts views Thread by Engineerik | last post: by
2 posts views Thread by Nicolas Le Gland | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by
reply views Thread by CCCYYYY | last post: by

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.