Add SetNonBlocking() function.
Add common library.
1. Use new/delete for malloc/free. 2. Use non-blocking socket. 3. Use loop to get buffer data.