Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / December 2005

Tip: Looking for answers? Try searching our database.

Asynchronous connection / normal connection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Piotrekk - 20 Dec 2005 10:09 GMT
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
Ignacio Machin ( .NET/ C# MVP ) - 20 Dec 2005 13:55 GMT
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,

Signature

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

> Hi
> I would like to ask you what is the difference in creating both kinds
[quoted text clipped - 7 lines]
> For any help - thx
> PK

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.