摘要:从底层的Windows Socket API谈起. 参考教材是《Windows网络编程》 阅读全文
posted @ 2007-05-22 23:56 shipfi 阅读(415) 评论(0) 推荐(0) 编辑
摘要:#include #include #include WSADATA wsaData; bool InitSocket(){ WORD wVersionRequested; int err; wVersionRequested = MAKEWORD( 2, 0 ); //询问Winsock 2.0版本 err = WSAStartup( wVersionRequested, &w... 阅读全文
posted @ 2007-05-22 12:31 shipfi 阅读(1402) 评论(1) 推荐(0) 编辑