代码
xiaoxin2296
这个作者很懒,什么都没留下…
展开
-
最简单的Windows Socket代码,包括服务器和客户端
服务器代码: #include #include void main() { WORD wVersionRequested; WSADATA wsaData; int err; wVersionRequested = MAKEWORD( 1, 1 ); err = WSAStartup( wVersionRequested, &wsaData ); if ( err转载 2011-10-20 00:11:00 · 299 阅读 · 0 评论 -
C++登陆Web的例子
用了MFC的CInternetSession,CHTTPFile和CHTTPConnection类。 #include #include #include #include using namespace std; int HttpCall(CString ServerAddress, int ServerPort, CSt原创 2012-06-03 23:41:40 · 743 阅读 · 1 评论