Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef _SOCROB_MULTICAST_DEFINITIONS_H_
00021 #define _SOCROB_MULTICAST_DEFINITIONS_H_
00022 
00023 #include <cstddef>
00024 #include <stdint.h>
00025 
00026 #include <string>
00027 #include <map>
00028 #include <vector>
00029 
00030 #include <boost/function.hpp>
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 namespace socrob
00045 {
00046   namespace multicast
00047   {
00049     const std::size_t MAX_MESSAGE_SIZE = 65536;
00050     
00051     
00053     typedef uint8_t id_type;
00054     
00056     typedef uint32_t qid_type;
00057     
00058     
00060     typedef enum {NOT_RUNNING, INSERT, RUNNING, REMOVE} agent_state_type;
00061     
00062     
00064     typedef boost::function<void (id_type) > id_function_type;
00065     
00067     inline void empty_id_function (id_type) {}
00068     
00069     
00071     typedef boost::function<void (std::vector<uint8_t>&) > buffer_function_type;
00072     
00074     inline void empty_buffer_function (std::vector<uint8_t> &) {}
00075     
00076     
00078     typedef boost::function<void (id_type, std::vector<uint8_t>&) > id_buffer_function_type;
00079     
00081     inline void empty_id_buffer_function (id_type, std::vector<uint8_t> const&) {}
00082     
00083     
00085     typedef boost::function<void (std::vector<uint8_t>&, id_type, std::vector<uint8_t>&) > handler_function_type;
00086     
00088     inline void empty_handler_function (std::vector<uint8_t>&, id_type, std::vector<uint8_t> const&) {}
00089     
00090     
00092     typedef boost::function<void (std::map<id_type, std::vector<uint8_t> >&) > short_callback_type;
00093     
00095     inline void empty_short_callback (std::map<id_type, std::vector<uint8_t> >&) {}
00096   }
00097 }
00098 
00099 #endif