
网络
kugou123
VC MVP 2005~2008
展开
-
利用HTTP方式上传(代码)
#include #include #include #include BOOL UseHttpSendReqEx(HINTERNET hRequest, DWORD dwPostSize,CString strLocalFile);BOOL Upload(CString bstrLocalFile,CString bstrServerIP,CString strServerPort,CStrin原创 2004-12-29 15:58:00 · 1609 阅读 · 0 评论 -
判断客户端是否断开
BOOL CMySocket::IsDropped(){ BOOL bDropped = FALSE; INT iRet = 0; BOOL bOK = TRUE; struct timeval timeout = { 0, 0 };//立刻返回,不阻塞 fd_set readSocketSet; FD_ZERO( &readSocketSet ); FD_SET( m_hSocket, &r原创 2005-07-24 17:24:00 · 1668 阅读 · 0 评论