diff --git a/protocol/include/microsoft/net/remote/protocol/NetRemoteProtocol.hxx b/protocol/include/microsoft/net/remote/protocol/NetRemoteProtocol.hxx index 76a12b52..85b3c189 100644 --- a/protocol/include/microsoft/net/remote/protocol/NetRemoteProtocol.hxx +++ b/protocol/include/microsoft/net/remote/protocol/NetRemoteProtocol.hxx @@ -8,9 +8,6 @@ namespace Microsoft::Net::Remote::Protocol { -static constexpr uint32_t NetRemotePortDefault = 5047; -static constexpr std::string_view NetRemoteAddressHttpDefault = "localhost:5047"; - /** * @brief Static NetRemote protocol information. */ @@ -18,13 +15,13 @@ struct NetRemoteProtocol { #define IP_DEFAULT "localhost" #define PORT_DEFAULT 5047 -#define PORT_SEPARATOR "" +#define PORT_SEPARATOR ":" #define xstr(s) str(s) #define str(s) #s - static constexpr uint32_t PortDefault{ 5047 }; - static constexpr std::string_view PortSeparator{ ":" }; - static constexpr std::string_view IpDefault{ "localhost" }; + static constexpr uint32_t PortDefault{ PORT_DEFAULT }; + static constexpr std::string_view PortSeparator{ PORT_SEPARATOR }; + static constexpr std::string_view IpDefault{ IP_DEFAULT }; static constexpr std::string_view AddressDefault{ IP_DEFAULT PORT_SEPARATOR xstr(PORT_DEFAULT) }; #undef IP_DEFAULT