(svn r15990) -Codechange: provide a thread safe variant of GetAddressAsString.
This commit is contained in:
@@ -120,10 +120,19 @@ public:
|
||||
*/
|
||||
const char *GetHostname();
|
||||
|
||||
/**
|
||||
* Get the address as a string, e.g. 127.0.0.1:12345.
|
||||
* @param buffer the buffer to write to
|
||||
* @param last the last element in the buffer
|
||||
* @param with_family whether to add the family (e.g. IPvX).
|
||||
*/
|
||||
void GetAddressAsString(char *buffer, const char *last, bool with_family = true);
|
||||
|
||||
/**
|
||||
* Get the address as a string, e.g. 127.0.0.1:12345.
|
||||
* @param with_family whether to add the family (e.g. IPvX).
|
||||
* @return the address
|
||||
* @note NOT thread safe
|
||||
*/
|
||||
const char *GetAddressAsString(bool with_family = true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user