netCommon.h

Go to the documentation of this file.
00001 /*
00002  * netCommon.h
00003  *
00004  *  Created on: Sep 22, 2013
00005  *      Author: simingl
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 } /* namespace FastEcslent */
00032 #endif /* NETCOMMON_H_ */

Generated on Fri Dec 13 14:54:16 2013 for FastECSLent by  doxygen 1.5.4