📄 clients.h
字号:
/* * * C++ Portable Types Library (PTypes) * Version 2.0.2 Released 17-May-2004 * * Copyright (C) 2001-2004 Hovik Melikyan * * http://www.melikyan.com/ptypes/ * */#ifndef W_CLIENTS_H#define W_CLIENTS_H#include <ptime.h>#include <pasync.h>#include "request.h"USING_PTYPESclass client_thread;class thread_list{public: rwlock lock; int count; client_thread** list; thread_list(); virtual ~thread_list(); void set_capacity(int icount); void add(client_thread* t); void del(client_thread* t);};class client_thread: public thread, public request_rec{protected: ipstream* client; int seq_num; // sequential number, pseudo-id virtual void execute(); virtual void cleanup();public: client_thread(ipstream* iclient); virtual ~client_thread(); int get_seq_num() { return seq_num; }};extern thread_list threads;extern int thread_count;extern int thread_seq;extern datetime started;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -