61 lines
2.1 KiB
C
61 lines
2.1 KiB
C
|
//==================================================================================
|
|||
|
//<2F><><EFBFBD><EFBFBD> ifdef <20><><EFBFBD>Ǵ<EFBFBD><C7B4><EFBFBD>ʹ<EFBFBD><CAB9> DLL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
// <20><><EFBFBD>ı<EFBFBD><EFBFBD><D7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DLL <20>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD><CFB6><EFBFBD><EFBFBD><EFBFBD> SHZDTRADELIB_EXPORTS
|
|||
|
// <20><><EFBFBD>ű<EFBFBD><C5B1><EFBFBD><EFBFBD>ġ<EFBFBD><C4A1><EFBFBD>ʹ<EFBFBD>ô<EFBFBD> DLL <20><>
|
|||
|
// <20>κ<EFBFBD><CEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD>ϲ<EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>˷<EFBFBD><CBB7>š<EFBFBD><C5A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD>ļ<EFBFBD><C4BC>а<EFBFBD><D0B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>κ<EFBFBD><CEBA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>Ὣ
|
|||
|
// SHZDTRADELIB_API <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>Ǵ<EFBFBD> DLL <20><><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD> DLL <20><><EFBFBD><EFBFBD><EFBFBD>ô˺궨<CBBA><EAB6A8><EFBFBD><EFBFBD>
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD>DZ<EFBFBD><C7B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ġ<EFBFBD>
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2013-03-22
|
|||
|
//===================================================================================
|
|||
|
#pragma once
|
|||
|
#include "ShZdMessage.h"
|
|||
|
#ifdef SHZDTRADELIB_EXPORTS
|
|||
|
#define SHZDTRADELIB_API __declspec(dllexport)
|
|||
|
#else
|
|||
|
#define SHZDTRADELIB_API __declspec(dllimport)
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
//===================================================================================
|
|||
|
// <20><><EFBFBD><EFBFBD><E2B5BC><EFBFBD>Ľӿ<C4BD>
|
|||
|
//===================================================================================
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
class SHZDTRADELIB_API IShZdTradeOutLib
|
|||
|
{
|
|||
|
public:
|
|||
|
virtual int OnReceiveTradeInfo(const CShZdMessage * re)=0;
|
|||
|
virtual int OnReceiveMarketInfo(const CShZdMessage * re)=0;
|
|||
|
virtual int OnReceiveErrorInfo(int errorCode,const char* re)=0;
|
|||
|
};
|
|||
|
|
|||
|
typedef IShZdTradeOutLib* IShZdTradeOutLibHandler;
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
class SHZDTRADELIB_API IShZdTradeInLib
|
|||
|
{
|
|||
|
public:
|
|||
|
virtual void Release() = 0;
|
|||
|
virtual int InitShZdServer()=0;//<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual int RegisterFront(const char *pszFrontAddress,int portNum)=0; //<2F><><EFBFBD><EFBFBD>ǰ<EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual int RegisterMarket(const char *pszMarketAddress,int portNum)=0;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual int ShZdSendInfoToTrade(const CShZdMessage *send)=0; //<2F><>ǰ<EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͽ<EFBFBD><CDBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual int ShZdSendInfoToMarket(const CShZdMessage *send)=0;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
virtual int RegisterOutLib(IShZdTradeOutLibHandler handler)=0;
|
|||
|
};
|
|||
|
|
|||
|
typedef IShZdTradeInLib* ShZdTradeInLibHandle;
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD> ShZdTradeLib.dll <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
class SHZDTRADELIB_API CShZdTradeLib {
|
|||
|
public:
|
|||
|
};
|
|||
|
#else
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
# define EXTERN_C extern "C"
|
|||
|
#else
|
|||
|
# define EXTERN_C
|
|||
|
#endif
|
|||
|
|
|||
|
EXTERN_C SHZDTRADELIB_API ShZdTradeInLibHandle GetShZdTradeLib(void);
|