Ping timeout use constant (#36)

* use constant for ping timeout

* change close code types
This commit is contained in:
Kumamon38
2019-04-19 18:16:25 +02:00
committed by Benjamin Sergeant
parent f61fd7b7f1
commit aea859af52
2 changed files with 7 additions and 5 deletions

View File

@ -160,10 +160,11 @@ namespace ix
std::atomic<bool> _requestInitCancellation;
// Constants for dealing with closing conneections
static const int kInternalErrorCode;
static const int kAbnormalCloseCode;
static const uint16_t kInternalErrorCode;
static const uint16_t kAbnormalCloseCode;
const static std::string kInternalErrorMessage;
const static std::string kAbnormalCloseMessage;
const static std::string kPingTimeoutMessage;
// enable auto response to ping
bool _enablePong;