Skip to content
Snippets Groups Projects
Commit c7e1fddd authored by Steven Murray's avatar Steven Murray
Browse files

Documented getAddrInfo() as being thread safe

Eric found that the underlying C function getaddrinfo() is thread
safe because of RFC 3493.
parent 22a2e806
Branches
Tags
No related merge requests found
......@@ -439,11 +439,9 @@ int connectWithTimeout(
* based error reporting mechanism of the C function into the C++ exception
* mechanism.
*
* Please note that this method is thread-safe on linux because the underlying
* getaddrinfo() function is thread-safe on linux. The same cannot be said to
* be true for MAC. If you wish to use this function in a multithreaded MAC
* application then you will have to wrap it with the appropriate thread
* locking mechanisms.
* Please note that this method is thread-safe because the underlying
* getaddrinfo() function is thread-safe. This is in accordance with
* RFC 3493.
*
* @param node If the AI_NUMERICHOST flag of hints.ai_flags is set then
* this parameter can be set to a numerical network address.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment