35 lines
566 B
C++
35 lines
566 B
C++
/*
|
|
* Copyright 2016 The PeerConnect Project Authors. All rights reserved.
|
|
*
|
|
* Ryan Lee
|
|
*/
|
|
|
|
|
|
#ifndef __PEERCONNECT_COMMON_H__
|
|
#define __PEERCONNECT_COMMON_H__
|
|
|
|
namespace pc {
|
|
|
|
#define function_pc [&]
|
|
|
|
enum CloseCode {
|
|
// Success
|
|
CLOSE_NORMAL = 0,
|
|
|
|
// Failure
|
|
CLOSE_GOING_AWAY = 0x80000000,
|
|
CLOSE_ABNORMAL,
|
|
CLOSE_PROTOCOL_ERROR,
|
|
CLOSE_SIGNAL_ERROR
|
|
};
|
|
|
|
|
|
const bool SYNC_OFF = false;
|
|
const bool SYNC_ON = true;
|
|
|
|
const bool FORCE_QUEUING_OFF = false;
|
|
const bool FORCE_QUEUING_ON = true;
|
|
|
|
} // namespace pc
|
|
|
|
#endif // __PEERCONNECT_COMMON_H__
|