Socket Type Question

kcwallace

Well-known member
Joined
May 27, 2004
Messages
172
Location
Irvine, CA
Can someone tell me the difference between syncronous and asyncronous connection types, and why one would choose one over the other
 
A synchronous connection is one that blocks until data is returned. Asynchronous allows you to go on doing work and get notified when data is ready for you.

There are many benefits to using an asynchronous approach. The main one however is that you can continue to accomplish work while you wait for data (like I mentioned above). This is an ideal approach in a networking environment since you are often dealing connections that respond in varying amounts of time. Leaving the system idle while you wait on remote data is simply not very efficient.
 
Back
Top