00001 // <copyright> 00002 // $Revision: 1.9 $ 00003 // 00004 // (c) B2BITS 2006. B2BITS is an abbreviation of 00005 // Business to Business Information Technology Services corporation. 00006 // "Licensor" shall mean B2BITS. 00007 // 00008 // This software is for the use of the paying client of B2BITS (which may be 00009 // a corporation, business area, business unit or single use subject to 00010 // licence terms) to whom it was delivered (the "Licensee")and no other party, 00011 // and any use beyond this business area is contrary to the terms of the licence grant. 00012 // 00013 // The Licensee acknowledges and agrees that the Software and Documentation 00014 // (the "Confidential Information") is confidential and proprietary to 00015 // the Licensor and the Licensee hereby agrees to use the Confidential 00016 // Information only as permitted by the full licence agreement betweeen 00017 // the two parties, to maintain the confidentiality of the Confidential 00018 // Information and not to disclose the confidential information, or any part 00019 // thereof, to any other person, firm or corporation. The Licensee 00020 // acknowledges that disclosure of the Confidential Information may give rise 00021 // to an irreparable injury to the Licensor in-adequately compensable in 00022 // damages. Accordingly the Licensor may seek (without the posting of any 00023 // bond or other security) injunctive relief against the breach of the forgoing 00024 // undertaking of confidentiality and non-disclosure, in addition to any other 00025 // legal remedies which may be available, and the licensee consents to the 00026 // obtaining of such injunctive relief. All of the undertakings and 00027 // obligations relating to confidentiality and non-disclosure, whether 00028 // contained in this section or elsewhere in this agreement, shall survive 00029 // the termination or expiration of this agreement for a period of five (5) 00030 // years. 00031 // 00032 // The Licensor agrees that any information or data received from the Licensee 00033 // in connection with the performance of the support agreement relating to this 00034 // software shall be confidential, will be used only in connection with the 00035 // performance of the Licensor's obligations hereunder, and will not be 00036 // disclosed to third parties, including contractors, without the Licensor's 00037 // express permission in writing. 00038 // 00039 // Information regarding the software may be provided to the Licensee's outside 00040 // auditors and attorneys only to the extent required by their respective 00041 // functions. 00042 // </copyright> 00043 00044 #ifndef __B2BITS_FastApplication_h__ 00045 #define __B2BITS_FastApplication_h__ 00046 00047 #include "B2BITS_FastSessionEvent.h" 00048 #include "B2BITS_FastSession.h" 00049 #include "B2BITS_FastMessage.h" 00050 00051 namespace Engine{ 00052 00053 class FastMessage; 00054 class FastSession; 00055 00057 class FastApplication{ 00058 public: 00059 virtual ~FastApplication(){}; 00060 00062 virtual bool process(const FastMessage& msg, const FastSession& sn) = 0; 00063 00065 virtual void onLogonEvent(const FastLogonEvent& event, const FastSession& sn) = 0; 00066 00068 virtual void onLogoutEvent(const FastLogoutEvent& event, const FastSession& sn) = 0; 00069 00077 virtual void onUnexpectedMessageEvent(const FastUnexpectedMessageEvent& apEvent, 00078 const FastSession& aSn){} 00079 00081 virtual void onSessionMsgEvent(const FastSsnMessageEvent& event, const FastSession& sn) = 0; 00082 00084 virtual bool onEncodeFrameStart(const FastFrameStartEvent& event, const FastSession& sn) = 0; 00085 00087 virtual void onNewStateEvent(const FastNewStateEvent& event, const FastSession& sn) = 0; 00088 00090 virtual bool onAlertEvent(const FastAlertEvent& event, const FastSession& sn) = 0; 00091 00093 virtual bool onResetEncodeFrameEvent(const FastResetFrame& event, const FastSession& sn) = 0; 00094 00096 virtual bool onUnableToRouteEvent(const FastUnableToRouteEvent& event, const FastSession& sn) = 0; 00097 00098 virtual bool onResend(const FastMessage& msg, const FastSession& sn) = 0; 00099 00100 virtual bool onSequenceGap(const FastMessage& msg, int seqNum, const FastSession& sn) = 0; 00101 }; 00102 00103 } 00104 00105 #endif 00106
1.5.6