⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 client-server.h

📁 hercules v9 symbian os application development
💻 H
字号:
// client-server.h
#ifndef CLIENTSERVER_H__
#define CLIENTSERVER_H__

#include <e32std.h>
#include <s32std.h>

_LIT(KServerName,"HerculesServer");// The server's identity within the client-server framework
_LIT(KServerBinaryName,"server"); // The name of the server binary (dll or exe) 

#ifdef __WINS__
const TInt KMinServerHeapSize=0x1000;
const TInt KMaxServerHeapSize=0x1000000;
#endif

// Test values - used for checking that IPC handling is correct.
// Normal production code would *not* include these
_LIT8(KNemeanLionDes, "NemeanLion");
const TInt KNemeanLionVal = 1;
const TInt KHydraHeadCount = 9;
const TInt KNoHeads = 0;
const TInt KInitialCount = 0;
const TInt KCapturedCount = 6;
_LIT8(KHercules, "Hercules");
_LIT8(KHeracles, "Heracles");
const TInt KHerculesDataVal = 7;
const TInt KBirdCount = 3;
// End of test values


enum THerculeanLabours
	{
	ESlayNemeanLion,
	ESlayHydra,
	ECaptureCeryneianHind,
	ESlayErymanthianBoar,
	ECleanAugeanStables,
	ECancelCleanAugeanStables,
	ESlayStymphalianBirds,
	ECancelSlayStymphalianBirds,
	ECaptureCretanBull,
	ECaptureMaresOfDiomedes,
	EObtainGirdleOfHippolyta,
	ECaptureOxenOfGeryon,
	ETakeGoldenApplesOfHesperides,
	ECaptureCerberus
	};

struct THydraData
	{
	TVersion iHydraVersion;
	TInt iHeadCount;
	};


class TServerStart
	{
public:
	TServerStart() {};
	TServerStart(TRequestStatus& aStatus);
	TPtrC AsCommand() const;
	TInt GetCommand();
	void SignalL();
private:
	TThreadId iId;
	TRequestStatus* iStatus;
	};

inline TServerStart::TServerStart(TRequestStatus& aStatus)
	:iId(RThread().Id()),iStatus(&aStatus)
	{aStatus=KRequestPending;}

// Descriptorizes 抰his

⌨️ 快捷键说明

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