BYTE *buff = new BYTE[4096];
int nCount = 0;
do{
if( ( (nCount+1)*4096 ) < BUFFERSIZE){
//strncpy((char *)buff,(const char*)pBuff+(nCount*4096),4095);
StrCopy(buff, pBuff+(nCount*4096), 2095);
m_pClientSock->Send(pBuff+(nCount*4096), 4096);
}else{
//strncpy((char *)buff,(const char*)pBuff+(nCount*4096), (BUFFERSIZE - (nCount*409