文件名称:TCP Socket类
文件大小:3KB
文件格式:H
更新时间:2018-06-04 05:12:00
TCP
#if defined AFX TSOCKET H ECFF7A02 DCAF 455D 97C3 0C1D465D977B INCLUDED #define AFX TSOCKET H ECFF7A02 DCAF 455D 97C3 0C1D465D977B INCLUDED #if MSC VER > 1000 #pragma once #endif MSC VER > 1000 #include "Afx h" #pragma comment lib "ws2 32 lib" #define WM RECVDATA WM USER+500 定义接收到数据发出的消息号 #define MAX MSG LEN 1500 最大的消息长度 MTU #define DEFAULTPORT 1991 定义默认服务端口 class TSocket; struct RECVPARAM { TSocket psocket; 指定创建的socket HWND hwnd; 指定需要处理接收消息的窗口句柄 };">#if defined AFX TSOCKET H ECFF7A02 DCAF 455D 97C3 0C1D465D977B INCLUDED #define AFX TSOCKET H ECFF7A02 DCAF 455D 97C3 0C1D465D977B INCLUDED #if MSC VER > 1000 #pragma once #endif MSC VER > 1000 #include "Afx h" #pragma comment lib "ws2 32 lib" #define WM R [更多]