Closed the window a bit in which multiple threads can close the same socket.  The application is supposed to manage this. Quick fix for now related to STUN socket use in sipXtapi unit tests.
Closed the window a bit in which multiple threads can close
the same socket.  The application is supposed to manage this.
Quick fix for now related to STUN socket use in sipXtapi unit
tests.

Consolidate some portability issues.



git-svn-id: f26ccc5efe72c2bd8e1c40f599fe313f2692e4de@6827 a612230a-c5fa-0310-af8b-88eea846685b

sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror,sipXtapi/sipXtapi-svn-mirror