Browse Source

Fix compilation errors (READ_TIMEOUT, READ_TIMEOUT)

Daniel Speichert 1 year ago
parent
commit
ad769d6614
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/framework/net/connection.h

+ 3
- 2
src/framework/net/connection.h View File

@@ -33,9 +33,10 @@ class Connection : public LuaObject
33 33
     typedef std::function<void(const boost::system::error_code&)> ErrorCallback;
34 34
     typedef std::function<void(uint8*, uint16)> RecvCallback;
35 35
 
36
+	static constexpr int32_t READ_TIMEOUT = 30;
37
+	static constexpr int32_t WRITE_TIMEOUT = 30;
38
+
36 39
     enum {
37
-        READ_TIMEOUT = 30,
38
-        WRITE_TIMEOUT = 30,
39 40
         SEND_BUFFER_SIZE = 65536,
40 41
         RECV_BUFFER_SIZE = 65536
41 42
     };

Loading…
Cancel
Save