00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 #ifndef NETCOMMON_H_
00009 #define NETCOMMON_H_
00010 
00011 #include <boost/asio.hpp>
00012 #include <boost/thread.hpp>
00013 #include <messages.h>
00014 #include <boost/date_time/posix_time/posix_time.hpp>
00015 
00016 namespace FastEcslent {
00017 
00018 class NetCommon {
00019 
00020 public:
00021         std::pair<boost::asio::ip::udp::endpoint, std::string> getMyIP();
00022         long getCurrentTimeLong();
00023         NetCommon();
00024         virtual ~NetCommon();
00025 
00026 private:
00027         boost::posix_time::ptime  startTime;
00028 
00029 };
00030 
00031 } 
00032 #endif