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:
parent
b45fd85b95
commit
b057698018
5 changed files with 52 additions and 28 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue