?? server.h
字號:
#ifndef __BANK_SERVER_H_
#define __BANK_SERVER_H_
#include "procpool.h"
#include "socket.h"
const int MAXBUFFERSIZE=4096;
const int TIMEOUT=10;
class Server:public ProcPool
{
public:
virtual ~Server(){ delete _acceptlock;delete _server;}
Server( const char * port,SimpleLog &logfile );
Server( const char * port,SimpleLog &logfile,int& max,int& init,int &low,int& high,int& inc,int& dec );
Server( const char * port,SimpleLog &logfile,int& max,int& init,int &low,int& high,int& inc,int& dec,int &timeout);
bool Init( );
void *WaitTask( );
bool doTask(void *task );
bool AuthorizeClient( char *recv,int& len);
private:
string _port;
ServerSocket *_server;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -