Skip to content
API Documentation
BastionGuard™
Connection.cpp
Go to the documentation of this file.
2#include <sstream>
3
4namespace bsc::model {
5
6std::string Connection::key() const {
7 std::ostringstream oss;
8 oss << protocol << '|' << src_ip << ':' << src_port << '|' << dst_ip << ':' << dst_port
9 << '|' << process_id << '|' << process_path;
10 return oss.str();
11}
12
13} // namespace bsc::model
std::uint32_t process_id
std::uint32_t dst_port
std::uint32_t src_port
std::string key() const
Definition Connection.cpp:6