• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#windowsobjective-ccocoaqtpython誰得phprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

Revisiónad5d1262d2495f4f2a45759ea8c0f5e88ad9e43e (tree)
Tiempo2015-04-01 15:44:53
AutorShinya TAKEBAYASHI <omoikanenomikoto@gmai...>
CommiterShinya TAKEBAYASHI

Log Message

Fixed compile error when using boost 1.50 or higher.

Cambiar Resumen

Diferencia incremental

--- a/l7vsd/src/tcp_session.cpp
+++ b/l7vsd/src/tcp_session.cpp
@@ -840,7 +840,11 @@ void tcp_session::up_thread_run()
840840 }
841841 if (!server_connected_flag && server_connect_time_out != 0) {
842842 boost::xtime now_time;
843+#if BOOST_VERSION >= 105000
844+ boost::xtime_get(&now_time, boost::TIME_UTC_);
845+#else
843846 boost::xtime_get(&now_time, boost::TIME_UTC);
847+#endif
844848 if ((now_time.sec - client_connected_time.sec) > server_connect_time_out) { // timeout detect.
845849 boost::system::error_code error_code;
846850 client_socket.close(error_code);
@@ -1139,7 +1143,11 @@ void tcp_session::up_thread_client_accept(const TCP_PROCESS_TYPE_TAG process_typ
11391143 this,
11401144 boost::asio::placeholders::error));
11411145 } else {
1146+#if BOOST_VERSION >= 105000
1147+ boost::xtime_get(&client_connected_time, boost::TIME_UTC_);
1148+#else
11421149 boost::xtime_get(&client_connected_time, boost::TIME_UTC);
1150+#endif
11431151 upthread_status = UPTHREAD_ACTIVE;
11441152 }
11451153 up_thread_next_call_function = up_thread_function_array[func_tag];