xsys.h

来自「这是和p2p相关的一份源码」· C头文件 代码 · 共 45 行

H
45
字号
// ------------------------------------------------// File : wsys.h// Date: 4-apr-2002// Author: giles// Desc: //		WSys derives from Sys to provide basic win32 functions such as starting threads.//// (c) 2002 peercast.org// ------------------------------------------------#ifndef _XSYS_H#define _XSYS_H// ------------------------------------#include "socket.h"#include "sys.h"// ------------------------------------class XSys : public Sys{public:	XSys();	virtual	ClientSocket	*createSocket();	virtual bool			startThread(ThreadInfo *);	virtual void			sleep(int );	virtual void			appMsg(long,long);	virtual unsigned int	getTime();	virtual unsigned int	rnd() {return rndGen.next();}	virtual void			getURL(const char *);	virtual void			exit();	virtual bool			hasGUI() {return false;}	virtual void			callLocalURL(const char *,int){}	virtual void			setNotify(NOTIFY_TYPE,const char *,const char *){}	virtual void			clearNotify(NOTIFY_TYPE){}	virtual void			executeFile(const char *) {}	Random rndGen;};                               // ------------------------------------#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?