Minggu, 05 Desember 2010

Asynchronous (nonblocking) client socket wrapper class without MFC

IntroductionI created this class while trying to avoid having recv hang/block indefinitely in a simple client application I was working on, without using MFC. recv can hang for a variety of reasons most common is untimely calling of recv or calling it when the remote server didn't send data it was supposed to send, e.g.: because of a malformed request. Using the code    #include "XSocket.h"

Tidak ada komentar:

Posting Komentar