| 1 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 2 | // Zen Enterprise Framework |
|---|
| 3 | // |
|---|
| 4 | // Copyright (C) 2001 - 2009 Tony Richards |
|---|
| 5 | // Copyright (C) 2008 - 2009 Matthew Alan Gray |
|---|
| 6 | // |
|---|
| 7 | // This software is provided 'as-is', without any express or implied |
|---|
| 8 | // warranty. In no event will the authors be held liable for any damages |
|---|
| 9 | // arising from the use of this software. |
|---|
| 10 | // |
|---|
| 11 | // Permission is granted to anyone to use this software for any purpose, |
|---|
| 12 | // including commercial applications, and to alter it and redistribute it |
|---|
| 13 | // freely, subject to the following restrictions: |
|---|
| 14 | // |
|---|
| 15 | // 1. The origin of this software must not be misrepresented; you must not |
|---|
| 16 | // claim that you wrote the original software. If you use this software |
|---|
| 17 | // in a product, an acknowledgment in the product documentation would be |
|---|
| 18 | // appreciated but is not required. |
|---|
| 19 | // 2. Altered source versions must be plainly marked as such, and must not be |
|---|
| 20 | // misrepresented as being the original software. |
|---|
| 21 | // 3. This notice may not be removed or altered from any source distribution. |
|---|
| 22 | // |
|---|
| 23 | // Tony Richards trichards@indiezen.com |
|---|
| 24 | // Matthew Alan Gray mgray@indiezen.org |
|---|
| 25 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 26 | #ifndef ZEN_ENTERPRISE_APPSERVER_UDP_I_MESSAGE_HPP_INCLUDED |
|---|
| 27 | #define ZEN_ENTERPRISE_APPSERVER_UDP_I_MESSAGE_HPP_INCLUDED |
|---|
| 28 | |
|---|
| 29 | #include "../Configuration.hpp" |
|---|
| 30 | |
|---|
| 31 | #include <Zen/Enterprise/AppServer/I_Message.hpp> |
|---|
| 32 | |
|---|
| 33 | #include <boost/cstdint.hpp> |
|---|
| 34 | |
|---|
| 35 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 36 | namespace Zen { |
|---|
| 37 | namespace Enterprise { |
|---|
| 38 | namespace AppServer { |
|---|
| 39 | namespace UDP { |
|---|
| 40 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 41 | |
|---|
| 42 | class ZBOOSTNETWORKING_DLL_LINK I_Message |
|---|
| 43 | : public virtual Zen::Enterprise::AppServer::I_Message |
|---|
| 44 | { |
|---|
| 45 | /// @name UDP::I_Message interface |
|---|
| 46 | /// @{ |
|---|
| 47 | public: |
|---|
| 48 | /// Every single message created on the client has a unique message Id. |
|---|
| 49 | /// This method returns that value. |
|---|
| 50 | virtual boost::uint32_t getMessageID() const = 0; |
|---|
| 51 | |
|---|
| 52 | virtual unsigned int getServiceID() const = 0; |
|---|
| 53 | /// @} |
|---|
| 54 | |
|---|
| 55 | /// @name 'Structors |
|---|
| 56 | /// @{ |
|---|
| 57 | protected: |
|---|
| 58 | I_Message(); |
|---|
| 59 | virtual ~I_Message(); |
|---|
| 60 | /// @} |
|---|
| 61 | |
|---|
| 62 | }; // UDP::I_Message interface |
|---|
| 63 | |
|---|
| 64 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 65 | } // namespace UDP |
|---|
| 66 | } // namespace AppServer |
|---|
| 67 | } // namespace Enterprise |
|---|
| 68 | } // namespace Zen |
|---|
| 69 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
|---|
| 70 | |
|---|
| 71 | #endif // ZEN_ENTERPRISE_APPSERVER_UDP_I_MESSAGE_HPP_INCLUDED |
|---|