Some example of async socket programming.