diff --git a/TCPSession.h b/TCPSession.h index c48ca33..1f4ae73 100644 --- a/TCPSession.h +++ b/TCPSession.h @@ -81,6 +81,8 @@ namespace core { /// TCPServer &server; + + enum Mode {LINE, BLOCK}; protected: @@ -150,7 +152,6 @@ namespace core { int lineBufferSize = 0; std::mutex mtx; bool term = false; - enum Mode {LINE, BLOCK}; enum Mode mode = LINE; int blockSize;