2012年3月13日
摘要: socket IO完成端口模型详解#include "stdafx.h"#include <WINSOCK2.h>#include <stdio.h>#define PORT 5150#define MSGSIZE 1024#pragma comment(lib, "ws2_32.lib")typedef enum{ RECV_POSTED}OPERATION_TYPE; //枚举,表示状态typedef struct{WSAOVERLAPPED overlap; WSABUF Buffer; char szMessage[MSG 阅读全文
posted @ 2012-03-13 12:32 小水人 阅读(368) 评论(0) 推荐(0) 编辑