-
用C/C++打印一个圆形,这是一道某公司的面试题目
用C/C++打印一个圆形,这是一道某公司的面试题目-With the C/C++ to print a circle, which is subject of an interview of a company
- 2022-02-21 12:05:34下载
- 积分:1
-
自动获取TeamViewer密码和ID
TeamViewer工具很多人不知道怎样获取密码和ID,该工具可以自动获取密码和ID,减少了人们困惑,点击该工具,在自己的界面上就会自动获取密码和ID以及TeamViewer的状态。
- 2022-02-12 20:32:25下载
- 积分:1
-
打开网页文件并替换输入字符
打开网页文件并替换输入字符-open documents for the Web and replace imported characters
- 2022-05-27 21:12:20下载
- 积分:1
-
IE风格工具条,定时关机
IE风格工具条,定时关机-IE style tools, Mytob.BSNotes
- 2022-02-15 20:50:15下载
- 积分:1
-
单字节/双字节;ASC编码和Unicode编码之间转换。
单字节/双字节;ASC编码和Unicode编码之间转换。-Single-byte/double byte ASC coding and conversion between Unicode encoding.
- 2022-04-12 05:00:40下载
- 积分:1
-
我估计这是对初学者来说最好的礼物了,我也用过的。
我估计这是对初学者来说最好的礼物了,我也用过的。-I guess this is the best gift for the beginner, and I have used.
- 2022-08-17 10:15:28下载
- 积分:1
-
Windows 程序设计(第五版)书的光盘上的源程序,学习这本书非常有用!...
Windows 程序设计(第五版)书的光盘上的源程序,学习这本书非常有用!-Windows programming (fifth edition), the CD of the source, study this book very useful!
- 2023-02-16 14:45:07下载
- 积分:1
-
对鼠标进行操作的源码
对鼠标进行操作的源码-to operate a mouse FO
- 2022-02-24 14:05:37下载
- 积分:1
-
基于WIFI数传模块上位机
基于单片机WIFI数传模块,通过电脑进行控制单片机,可以做WIFI小车,WIFI智能家居,等等,这个这是C#写的源码,完美运行,需要下位机的控制。
- 2022-03-16 08:01:38下载
- 积分: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