| 145 | } |
| 146 | |
| 147 | string DebugPrint(Protocol::PacketType type) |
| 148 | { |
| 149 | switch (type) |
| 150 | { |
| 151 | case Protocol::PacketType::Error: return "Error"; |
| 152 | case Protocol::PacketType::AuthV0: return "AuthV0"; |
| 153 | case Protocol::PacketType::DataV0: return "DataV0"; |
| 154 | case Protocol::PacketType::DataV1: return "DataV1"; |
| 155 | } |
| 156 | stringstream ss; |
| 157 | ss << "Unknown(" << static_cast<uint32_t>(type) << ")"; |
| 158 | return ss.str(); |
| 159 | } |
| 160 | } // namespace tracking |