clientservercommon.h

来自「c++下s60终端对终端传输协议」· C头文件 代码 · 共 39 行

H
39
字号
/* Copyright (c) 2005, Forum Nokia. All rights reserved */


#ifndef __CLIENTSERVERCOMMON_H__
#define __CLIENTSERVERCOMMON_H__

// INCLUDE FILES
#include <e32base.h>

// CONSTANTS
_LIT( KTmServerName,"TMServer" ); // Server name
_LIT( KTmServerSemaphoreName, "TmServerSemaphore" );

// The server version. A version must be specified when
// creating a session with the server.
const TUint KTmServMajorVersionNumber=1;
const TUint KTmServMinorVersionNumber=0;
const TUint KTmServBuildVersionNumber=0;

// Maximum length of the descriptor received from/written to the client's
// address space
const TInt KTmMaxClientDescriptorLength = 150;

// DATA TYPES
// Opcodes used in message passing between client and server
enum TTmServRqst
    {
    ETmServRequestAddress,
    ETmServSetAddress,
    ETmServRequestPort,
    ETmServSetPort,
    ETmServRequestType,
    ETmServSetType
    };

#endif // __CLIENTSERVERCOMMON_H__

// End of File

⌨️ 快捷键说明

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