Added local-only auto-authorize for API

This commit is contained in:
Thulinma 2017-04-15 14:00:04 +02:00
parent 5e2b29466b
commit a82be2775f
3 changed files with 43 additions and 6 deletions

View file

@ -82,6 +82,7 @@ namespace Socket{
std::string getError(); ///< Returns a string describing the last error that occured.
bool connected() const; ///< Returns the connected-state for this socket.
bool isAddress(std::string addr);
bool isLocal(); ///< Returns true if remote address is a local address.
// buffered i/o methods
bool spool(); ///< Updates the downbufferinternal variables.
bool peek(); ///< Clears the downbuffer and fills it with peek