/********************************************************************* * * 文 件: ProxyMag.h 代理管理 * * 版权所有: Shanghai Baosight Software Co., Ltd. * * 概述: * : * : * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * *********************************************************************/ #ifndef _PROXY_MAG_H #define _PROXY_MAG_H #include #include //#include using namespace baosight; /********************************************************************* * 类 名: ProxyMag * 版权所有: Shanghai Baosight Software Co., Ltd. * 类 职 责:获取相应的代理 * : * : * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * *********************************************************************/ class ProxyMag{ public: /********************************************************************** * 概述: 根据任务名获取代理 * 函数名: GetAppICEPrx * 返回值: baosight::MessageICEPrx * 参数列表: 参数类型 取值范围 描述 * PrxName: string * timeout: int, unit ms,default 30s * mode: int 0,1 0:不等待返回, 1:等待返回 * * 版本历史 * 1.0 2010-09-02 echo_li 增加注释 * **********************************************************************/ static MessageICEPrx GetAppICEPrx( string PrxName, int timeout=30000, int mode = 0); /********************************************************************** * 概述: 根据任务名获取代理,发送消息 * 函数名: SendToPrx * timeout: int, unit ms,default 30s **********************************************************************/ static short SendToPrx(int eventNo,const string& PrxName, const char* str,int length,int timeout=30000); private: }; #endif