Added api_endpoint API call to give local API endpoint address, added responses to local-only UDP API, added Socket::getSocketName(), added ability to discover current listening interface address and port for serveSocket-style functions

This commit is contained in:
Thulinma 2020-07-15 19:29:16 +02:00
parent b45fd85b95
commit b057698018
5 changed files with 52 additions and 28 deletions

View file

@ -49,6 +49,11 @@ namespace Util{
void addConnectorOptions(int port, JSON::Value &capabilities);
};
/// The interface address the current serveSocket function is listening on
extern std::string listenInterface;
/// The port the current serveSocket function is listening on
extern uint32_t listenPort;
/// Gets directory the current executable is stored in.
std::string getMyPath();