/************************************************************************************/
//Start resending circle
//The kernel of main project
struct BUF
{
char data[1024*1];
int lock;
};
BUF buf_c;
BUF buf_s;
buf_c.lock = 0;
buf_s.lock = 0;
int slen;
while( GetLastError() == 0 )
{
//Reset the fdread set
FD_ZERO(&fdread);
FD_SET(sock_c,&fdread);
FD_SET(sock_s,&fdread);
//Reset the fdwrite set
FD_ZERO(&fdwrite);
FD_SET(sock_c,&fdwrite);
FD_SET(sock_s,&fdwrite);