-
Tomcat5_x中的虚拟主机配置方法
Tomcat5_x中的虚拟主机配置方法-Tomcat5_x the virtual host configuration
- 2022-02-01 05:30:29下载
- 积分:1
-
数据结构
详细描述了如何创建队列 以及操作
数据结构
详细描述了如何创建队列 以及操作-Data structure described in detail how to create a queue and the operation
- 2023-04-29 12:15:03下载
- 积分:1
-
一个线程池的一个类,基本使用如下:
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below:
struct TSession { SOCKET socket int id } class myIocp:public CIOCP
{ public:
void OnRead(void* p, char* buf, int len)
void OnAccept(SOCKET socket)
void OnClose(void* p) }
void myIocp::OnAccept(SOCKET socket)
{ TSession*s = new TSession s->socket = socket
//here you can do something about connecti
- 2022-07-17 05:14:52下载
- 积分:1
-
VCL消息系统的剖析
VCL消息系统的剖析--四级消息处理-VCL Message System Analysis-- four Message Handling
- 2022-03-02 14:18:41下载
- 积分:1
-
鼠标测试的小程序,使用visual C++编写
鼠标测试的小程序,使用visual C++编写-small mouse tests, the use of visual C preparation
- 2022-03-01 15:15:45下载
- 积分:1
-
平板电脑的音频
BVNBNBNV NHVNNV BV T GH GGHJ JHG HJGHG JH GHJGHJ GHJG JHJ GHDFDFEDF DMUGFH XG,/。R O 选举登记主任雇佣条例 》 E O;E O WR
R
R
T
RT H
RT
RTH
H
H
HH
- 2022-01-24 15:46:36下载
- 积分:1
-
Collected from the camera image is displayed after a good deal with the procedur...
把从摄像机采集到的图像,经过处理好显示出来的程序-Collected from the camera image is displayed after a good deal with the procedures
- 2022-02-06 17:01:01下载
- 积分:1
-
实现对LSP等钩子程序的管理。对于SOCKET编程有兴趣的人可以参考。...
实现对LSP等钩子程序的管理。对于SOCKET编程有兴趣的人可以参考。-install and uninstall LSP
- 2023-03-01 18:35:04下载
- 积分:1
-
请认真阅读您的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码...
请认真阅读您的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花费在为您修正说明上。压缩包解压时不能有密码-Please read them carefully before you write the document package to their specific functions (at least 20 words). Try not to let the station master at the time you spend on the amendment note. Package should not have a password when extracting
- 2022-02-06 21:59:22下载
- 积分:1
-
用.net编写的编译原理中所用到的词法分析器。是编译器的最基本功能!...
用.net编写的编译原理中所用到的词法分析器。是编译器的最基本功能!-The accidence analysiser for compile principles using .net. It is the fondation of compiler
- 2022-10-21 05:10:03下载
- 积分:1